New tests.
authorMarek Safar <marek.safar@gmail.com>
Fri, 6 Oct 2006 10:36:47 +0000 (10:36 -0000)
committerMarek Safar <marek.safar@gmail.com>
Fri, 6 Oct 2006 10:36:47 +0000 (10:36 -0000)
svn path=/trunk/mcs/; revision=66342

mcs/errors/cs0019-18.cs [new file with mode: 0644]
mcs/errors/cs0162-8.cs [new file with mode: 0644]

diff --git a/mcs/errors/cs0019-18.cs b/mcs/errors/cs0019-18.cs
new file mode 100644 (file)
index 0000000..f531070
--- /dev/null
@@ -0,0 +1,7 @@
+// CS0019: Operator `>' cannot be applied to operands of type `bool' and `bool'
+// Line: 6
+
+class S
+{
+       const bool res = true > false;
+}
diff --git a/mcs/errors/cs0162-8.cs b/mcs/errors/cs0162-8.cs
new file mode 100644 (file)
index 0000000..7500614
--- /dev/null
@@ -0,0 +1,14 @@
+// CS0162: Unreachable code detected\r
+// Line: 9\r
+// Compiler options: -warnaserror -warn:2\r
+\r
+class C\r
+{\r
+       public static int Main ()\r
+       {\r
+               if (true == false)\r
+                       return 1;\r
+               \r
+               return 2;\r
+       }\r
+}
\ No newline at end of file