projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add CopyPath, CopyPathFlat, AppendPath
[mono.git]
/
mcs
/
tests
/
test-527.cs
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