2005-09-05 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Mon, 5 Sep 2005 17:54:14 +0000 (17:54 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Mon, 5 Sep 2005 17:54:14 +0000 (17:54 -0000)
* gtest-198.cs : fix. missing main.
* gtest-199.cs : test code similar to #75772.

svn path=/trunk/mcs/; revision=49494

mcs/tests/ChangeLog
mcs/tests/gtest-198.cs
mcs/tests/gtest-199.cs [new file with mode: 0644]

index 5b77e0766daee3011b52a201e121fc243d0d691d..8c1a8edda1a1d819abae88d4c88c17e206dc8197 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * gtest-198.cs : fix. missing main.
+       * gtest-199.cs : test code similar to #75772.
+
 2005-09-05  Atsushi Enomoto  <atsushi@ximian.com>
 
        * known-issues-gmcs: new tests are not passing with gmcs.
index 40f29bc6375bfcb12136ec7b726b5ba2e2a706b7..aba370233cef30a6a89f99ace216f12578ad201e 100644 (file)
@@ -16,6 +16,11 @@ namespace ClassLibrary2
                         _List.Add(item);
                 }
         }
+
+       class Foo
+       {
+               public static void Main () {}
+       }
 }
  
 
diff --git a/mcs/tests/gtest-199.cs b/mcs/tests/gtest-199.cs
new file mode 100644 (file)
index 0000000..cbe8ee7
--- /dev/null
@@ -0,0 +1,17 @@
+// Compiler options: /unsafe
+
+// similar code from #75772.
+public class Splay<T>
+{
+  unsafe private struct Node
+  {
+    private int* foo;
+    private T                 data;
+  } 
+}
+
+class Foo 
+{
+  public static void Main () {}
+}
+