New test.
authorMarek Safar <marek.safar@gmail.com>
Tue, 15 May 2007 22:38:45 +0000 (22:38 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 15 May 2007 22:38:45 +0000 (22:38 -0000)
svn path=/trunk/mcs/; revision=77446

mcs/tests/test-570.cs [new file with mode: 0644]

diff --git a/mcs/tests/test-570.cs b/mcs/tests/test-570.cs
new file mode 100644 (file)
index 0000000..938abb2
--- /dev/null
@@ -0,0 +1,24 @@
+//Compiler options: -warnaserror -warn:4
+
+using System;
+interface IFoo
+{
+}
+
+class Bar
+{
+}
+
+class Program
+{
+       public static void Main()
+       {
+               IFoo foo = null;
+               if (foo is IFoo)
+                       Console.WriteLine("got an IFoo"); // never prints
+                       
+               Bar bar = null;
+               if (bar is Bar)
+                       Console.WriteLine("got a bar"); // never prints
+       }
+}