Author: marek
Date: 2008-02-18 11:50:49 -0500 (Mon, 18 Feb 2008)
New Revision: 96076
Added:
trunk/mcs/errors/cs0162-11.cs
Log:
New test.
Added: trunk/mcs/errors/cs0162-11.cs
===================================================================
--- trunk/mcs/errors/cs0162-11.cs 2008-02-18 16:50:37 UTC (rev 96075)
+++ trunk/mcs/errors/cs0162-11.cs 2008-02-18 16:50:49 UTC (rev 96076)
@@ -0,0 +1,18 @@
+// CS0162: Unreachable code detected
+// Line: 12
+// Compiler options: -warnaserror -warn:2
+
+class Program
+{
+ static int Main ()
+ {
+ int ctc_f = 0;
+
+ if ((++ctc_f == 0 && false)) {
+ return 1;
+ }
+
+ return 0;
+ }
+}
+
Property changes on: trunk/mcs/errors/cs0162-11.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches