Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / test-143.cs
1 using System;
2
3 struct MonoEnumInfo {
4         int val;
5
6         void stuff() { val = 1; }
7
8         static int GetInfo (out MonoEnumInfo info) {
9                 info = new MonoEnumInfo ();
10                 info.stuff();
11                 return info.val;
12         }
13
14         public static int Main()
15         {
16                 MonoEnumInfo m;
17
18                 if (GetInfo (out m) != 1)
19                         return 1;
20                 
21                 if (m.val != 1)
22                         return 2;
23
24                 return 0;
25         }
26 };
27