[2020-02] Avoid following invalid pointers in mono_w32process_get_modules on Darwin...
[mono-project.git] / mono / tests / generic-synchronized.2.cs
blob195a803d948b0e0954e79bf43c4b73d31d2a147e
1 using System;
2 using System.Threading;
3 using System.Runtime.CompilerServices;
5 public class Gen<T> {
6 [MethodImplAttribute(MethodImplOptions.Synchronized)]
7 public int synch () {
8 return 123;
11 public int callSynch () {
12 return synch ();
16 public class main {
17 public static int Main () {
18 Gen<string> gs = new Gen<string> ();
20 gs.synch ();
21 gs.callSynch ();
23 return 0;