Merge pull request #214 from QuickJack/cd2c570c5543963d987f51080218715407c5d4b9
[mono.git] / mcs / tests / gtest-451.cs
index 5fd951737fefdaa355ff9575ed2fb17dbc8c2ac0..d993911281478c194ab57921e97eebc7b8af8d31 100644 (file)
@@ -1,46 +1,10 @@
-// Compiler options: -r:gtest-451-lib.dll -langversion:future
+// Compiler options: -r:gtest-451-lib.dll
 
-using System;
-
-class C
+public class Test
 {
-       static int Test (int i = 1, string s = "", bool b = false, ushort u = 4)
-       {
-               return i;
-       }
-       
        public static int Main ()
        {
-               if (Test () != 1)
-                       return 1;
-               
-               if (B.TestString () != "mono")
-                       return 3;
-               
-               if (B.TestString ("top") != "top")
-                       return 4;
-               
-               if (B.TestB () != null)
-                       return 5;
-
-               if (B.Test<ushort> () != 0)
-                       return 6;
-
-               if (B.TestDecimal (2) != decimal.MinValue)
-                       return 7;
-               
-               if (B.TestDecimal (2, 5) != 5)
-                       return 8;
-               
-               B b = new B ();
-               b [1] = 'z';
-               if (b [0] != 'h')
-                       return 9;
-               
-               B.TestNew ();
-               
-               Console.WriteLine ("ok");
-               
-               return 0;
+               var a = new A<int>.N1 ();
+               return a.Value.Foo ();
        }
 }