New tests.
authorMarek Safar <marek.safar@gmail.com>
Thu, 27 Mar 2008 12:31:50 +0000 (12:31 -0000)
committerMarek Safar <marek.safar@gmail.com>
Thu, 27 Mar 2008 12:31:50 +0000 (12:31 -0000)
svn path=/trunk/mcs/; revision=99116

mcs/errors/gcs0464-2.cs [new file with mode: 0644]
mcs/errors/gcs0464.cs [new file with mode: 0644]

diff --git a/mcs/errors/gcs0464-2.cs b/mcs/errors/gcs0464-2.cs
new file mode 100644 (file)
index 0000000..6d7a9cb
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0464: The result of comparing type `int?' against null is always `false'
+// Line: 10
+// Compiler options: -warnaserror -warn:2
+
+public class X
+{
+       public static bool Compute (int? x)
+       {
+               return x >= null;
+       }
+}
diff --git a/mcs/errors/gcs0464.cs b/mcs/errors/gcs0464.cs
new file mode 100644 (file)
index 0000000..24f5585
--- /dev/null
@@ -0,0 +1,11 @@
+// CS0464: The result of comparing type `int' against null is always `false'
+// Line: 10
+// Compiler options: -warnaserror -warn:2
+
+public class X
+{
+       public static bool Compute (int x)
+       {
+               return x < null;
+       }
+}