repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
tests
/
test-143.cs
blob
3fb5ec2db83926b82b0c8744aa33699c4bfdd8f2
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