2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-742.cs
blobb2aa98ee177b327060652366697277b790bfd74d
1 using System;
3 public struct Test
5 public int Foo;
7 public static Test Set (C c)
9 c.Value.Foo = 21;
10 return c.Value;
14 public class C
16 public Test Value;
18 public class Driver
20 static int Main ()
22 var v = Test.Set (new C ());
23 Console.WriteLine (v.Foo);
24 if (v.Foo != 21)
25 return 1;
26 return 0;