* xbuild/Microsoft.Common.targets: For referenced projects,
[mcs.git] / tests / gtest-076.cs
blob57d0676166db21f7a959b750b53d8a07789e7f53
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 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;