[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / gtest-initialize-14.cs
blob1365493546693ad7d60763bc773ff70e259af6f0
1 using System;
3 struct S
5 public int X, Y;
8 class X
10 public static int Main ()
12 var rect = new S {
13 X = 1,
14 Y = 2,
17 if (rect.X != 1)
18 return 1;
20 if (rect.Y != 2)
21 return 2;
23 rect = new S {
24 X = rect.X,
25 Y = rect.Y,
28 if (rect.X != 1)
29 return 3;
31 if (rect.Y != 2)
32 return 4;
34 return 0;