[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / test-143.cs
blob431393f5c05d3b33140e78c2a5f17b214ae8ac68
1 using System;
3 struct MonoEnumInfo {
4 int val;
6 void stuff() { val = 1; }
8 static int GetInfo (out MonoEnumInfo info) {
9 info = new MonoEnumInfo ();
10 info.stuff();
11 return info.val;
14 public static int Main()
16 MonoEnumInfo m;
18 if (GetInfo (out m) != 1)
19 return 1;
21 if (m.val != 1)
22 return 2;
24 return 0;