projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-02-08 Atsushi Enomoto <atsushi@ximian.com>
[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
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