repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[eglib] In AIX/generic POSIX, handle null addresses better (#17892)
[mono-project.git]
/
mcs
/
tests
/
test-143.cs
blob
431393f5c05d3b33140e78c2a5f17b214ae8ac68
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