[Mono-bugs] [Bug 56821][Wis] Changed - Constant folding is not done on true || x

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 11 Apr 2004 23:54:54 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=56821

--- shadow/56821	2004-04-11 23:02:01.000000000 -0400
+++ shadow/56821.tmp.9253	2004-04-11 23:54:54.000000000 -0400
@@ -78,6 +78,14 @@
 		
 		System.Console.WriteLine (i);
 	}
 }
 
 You have to get the side effects *EXACTLY*, ie, load c.b and a.b
+
+------- Additional Comments From bmaurer@users.sf.net  2004-04-11 23:54 -------
+THis kind of code occurs in `java style' conditional compilation:
+
+const bool DEBUGGING = false;
+
+if (DEBUGGING && foo)
+    Console.WriteLine ("foo is true!");