Bump NuGet.BuildTasks to get new updates and switch to `dev` branch (#5566)
[mono.git] / mcs / tests / gtest-166.cs
index ccfa38d0aecaa1572ebf8d2bc4f44c2eedaba93d..693ebe8ea208671c06aa24065265d534292d131a 100644 (file)
@@ -1,55 +1,11 @@
-// Compiler options: -unsafe -r:gtest-166-lib.dll
-
-// Fixed buffers tests
+// Compiler options: -r:gtest-166-lib.dll
 
 using System;
 
-public unsafe struct TestNew {
-       private fixed char test_1 [128];
-       public fixed bool test2 [4];
-       
-       public fixed int T [2];
-       public fixed bool test20 [4], test21 [40];
-       
-       private int foo, foo2;
-       public void SetTest () {
-               fixed (char* c = test_1) {
-                       *c = 'g';
-               }
-       }
-}
-
-public class C {
-       unsafe static int Test () {
-               TestNew tt = new TestNew ();
-               tt.SetTest ();
-               tt.test2 [2] = false;
-               tt.T [1] = 5544;
-               if (tt.T [1] != 5544)
-                       return 2;
-       
-               ExternalStruct es = new ExternalStruct ();
-               es.double_buffer [1] = 999999.8888;
-               es.double_buffer [0] = es.double_buffer [1];
-
-               // Attributes test
-               if (Attribute.GetCustomAttribute (typeof (TestNew).GetField ("test2"), typeof (System.Runtime.CompilerServices.FixedBufferAttribute)) == null)
-                       return 3;
-
-               
-               if (typeof (TestNew).GetNestedTypes ().Length != 5)
-                       return 5;
-
-               foreach (Type t in typeof (TestNew).GetNestedTypes ()) {
-                       if (Attribute.GetCustomAttribute (t, typeof (System.Runtime.CompilerServices.CompilerGeneratedAttribute)) == null)
-                               return 4;
-               }
-
-               Console.WriteLine ("OK");
-               return 0;
-       }
-    
-       public static int Main () {
-               return Test ();
+public class Foo
+{
+       public static void Main () 
+       {
+               Comparison<TestClass.A<TestClass.Nested>> b = TestClass.B.Compare;
        }
 }