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
[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git]
/
mcs
/
tests
/
test-879.cs
blob
4d6aa3396bb33a5ede2bc40106385164a33ea680
1
struct
AStruct
2
{
3
public object
foo
;
4
5
public
AStruct
(
int
i
)
6
:
this
()
7
{
8
}
9
}
10
11
public class
Tests
12
{
13
public static int
Main
()
14
{
15
for
(
int
i
=
0
;
i
<
100
; ++
i
) {
16
AStruct a
;
17
18
a
=
new
AStruct
(
5
);
19
if
(
a
.
foo
!=
null
)
20
return
1
;
21
22
a
.
foo
=
i
+
1
;
23
}
24
25
System
.
Console
.
WriteLine
(
"ok"
);
26
return
0
;
27
}
28
}