2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / tests / test-143.cs
blob3fb5ec2db83926b82b0c8744aa33699c4bfdd8f2
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 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;