[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-278-3-lib.cs
index ef39a8b41c73b8a0e0882ec85b84d7c4c0b4c995..552a0e3bbbad4da908c970766fad475c6cb48fb5 100644 (file)
@@ -1,6 +1,28 @@
-// Compiler options: -r:gtest-278-2-lib.dll -t:library\r
-\r
-using System;\r
-using System.Runtime.CompilerServices;\r
-\r
-[assembly: TypeForwardedTo(typeof(C))]\r
+// Compiler options: -r:gtest-278-2-lib.dll -t:library
+
+using System;
+
+public class B
+{
+       public static int Test ()
+       {
+               if (C.Print () != "C")
+                       return 1;
+
+               if (D.Print () != "D")
+                       return 2;
+                       
+               if (G<int>.Test (5) != 5)
+                       return 3;
+                       
+               if (C.CC.Print () != "C+CC")
+                       return 4;
+                       
+               Console.WriteLine (typeof (C));
+               Console.WriteLine (typeof (D));
+               Console.WriteLine (typeof (G<string>));
+               Console.WriteLine (typeof (C.CC).Assembly.FullName);
+
+               return 0;
+       }
+}