[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / tests / test-829.cs
blobd5c83a033f9cbe9bbf5ddc45cc7d0b817684ddc5
1 using System;
3 struct S2
5 public float f1;
8 struct S
10 public S2 s2;
11 public float F;
14 class C
16 static void Test (bool b, out S s)
18 if (b) {
19 s.s2 = new S2 ();
20 s.F = 1.0f;
21 } else {
22 s.s2.f1 = 2.1f;
23 s.F = 1.0f;
27 static void Test2 (bool b)
29 S s;
30 if (b) {
31 s.s2 = new S2 ();
32 s.F = 1.0f;
33 } else {
34 s.s2.f1 = 2.1f;
35 s.F = 1.0f;
39 public static int Main ()
41 S s;
42 Test (true, out s);
43 Test (false, out s);
44 return 0;