[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-076.cs
blob699cf327c56f5fe0f2b8927300b7f620d14b4e35
1 using System;
3 struct Foo<T>
5 public T Data;
7 public Foo (T data)
9 this.Data = data;
13 class Test<T>
15 public Foo<T> GetFoo (T data)
17 return new Foo<T> (data);
21 class X
23 public static int Main ()
25 Test<long> test = new Test<long> ();
26 Foo<long> foo = test.GetFoo (0x800);
28 // This is a very simple test, just make sure the struct
29 // is returned correctly. This was broken until recently
30 // and I just fixed it on amd64.
31 if (foo.Data != 0x800)
32 return 1;
33 return 0;