Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / gtest-278-2-lib.cs
index c5e529e2a099556ad6501f7a29177e55f63a202c..3614f024d9f2eb81ebf1b65e9bbb8c7f99647c16 100644 (file)
@@ -1,21 +1,38 @@
-// Compiler options: -t:library\r
-\r
-using System;\r
-\r
-public class C\r
-{\r
-       public class CC {}\r
-\r
-       public static string Print ()\r
-       {\r
-               return typeof (C).FullName;\r
-       }\r
-}\r
-\r
-public class D\r
-{\r
-       public static string Print ()\r
-       {\r
-               return typeof (D).FullName;\r
-       }\r
-}\r
+// Compiler options: -t:library
+
+// CECIL FIXME: Every method should actually throw new ApplicationException ("Should not be called");
+// but because mcs dependency on System.Reflection it cannot be done
+
+using System;
+
+public class C
+{
+       public class CC
+       {
+               public static string Print ()
+               {
+                       return typeof (CC).FullName;
+               }
+       }
+
+       public static string Print ()
+       {
+               return typeof (C).FullName;
+       }
+}
+
+public class D
+{
+       public static string Print ()
+       {
+               return typeof (D).FullName;
+       }
+}
+
+public struct G<T>
+{
+       public static T Test (T t)
+       {
+               return t;
+       }
+}