2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git] / mono / tests / newobj-valuetype.cs
blob9cc5de2b0d1ef93d188c107f09e98b4c3f6b84c8
2 namespace Test {
3 public struct Struct {
4 public int a;
6 public Struct (int val) {
7 a = val;
10 public static int Main () {
11 object o = new Struct (1);
12 Struct s = new Struct (2);
14 if (s.a != 2)
15 return 1;
16 if (((Struct)o).a != 1)
17 return 2;
18 return 0;