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
2008-08-31 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
tests
/
test-527.cs
blob
50232d9ef264491c81eb5e833780f9c9950e0be4
1
using
System
;
2
3
class
Repro
4
{
5
private int
[]
stack
=
new int
[
1
];
6
private int
cc
;
7
public int
fc
;
8
private int
sp
;
9
10
static int
Main
()
11
{
12
Repro r
=
new
Repro
();
13
r
.
foo
();
14
Console
.
WriteLine
(
r
.
stack
[
0
]);
15
return
r
.
stack
[
0
] ==
42
?
0
:
1
;
16
}
17
18
public void
foo
()
19
{
20
fc
=
cc
=
bar
();
21
fc
=
stack
[
sp
++] =
cc
;
22
}
23
24
private int
bar
()
25
{
26
return
42
;
27
}
28
}
29