[runtime] Centralize the processing of MonoTrampInfo structures into the mono_tramp_i...
[mono.git] / mono / mini / generics.cs
index 2603f7d6c887bd2e8e3f8409fe8eeb961aa4f622..fcf05c0653eae370bd8b6de8e1774c6eea9aad7e 100644 (file)
@@ -906,6 +906,20 @@ class Tests
                return result;
        }
 
+       class SyncClass<T> {
+               [MethodImpl(MethodImplOptions.Synchronized)]
+               public Type getInstance() {
+                       return typeof (T);
+               }
+       }
+
+       static int test_0_synchronized_gshared () {
+               var c = new SyncClass<string> ();
+               if (c.getInstance () != typeof (string))
+                       return 1;
+               return 0;
+       }
+
        class Response {
        }
 
@@ -1068,7 +1082,7 @@ class Tests
 }
 
 #if !MOBILE
-public class GenericsTests : Tests
+class GenericsTests : Tests
 {
 }
 #endif