2008-08-31 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / tests / test-527.cs
blob50232d9ef264491c81eb5e833780f9c9950e0be4
1 using System;
3 class Repro
5 private int[] stack = new int[1];
6 private int cc;
7 public int fc;
8 private int sp;
10 static int Main()
12 Repro r = new Repro();
13 r.foo();
14 Console.WriteLine(r.stack[0]);
15 return r.stack[0] == 42 ? 0 : 1;
18 public void foo()
20 fc = cc = bar();
21 fc = stack[sp++] = cc;
24 private int bar()
26 return 42;