New test.
[mono.git] / mcs / tests / gtest-anontype-07.cs
diff --git a/mcs/tests/gtest-anontype-07.cs b/mcs/tests/gtest-anontype-07.cs
new file mode 100644 (file)
index 0000000..db04e16
--- /dev/null
@@ -0,0 +1,24 @@
+// Compiler options: -langversion:linq
+
+using System;
+using System.Collections;
+
+public class Test
+{
+       static int Main ()
+       {
+               var v1 = new {  };
+               var v2 = new {  };
+               
+               if (v1.GetType () != v2.GetType ())
+                       return 1;
+                       
+               if (!v1.Equals (v2))
+                       return 2;
+                       
+               Console.WriteLine (v1);
+               Console.WriteLine (v2);
+               return 0;
+       }
+}
+