Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / test-527.cs
blobfcc8cd918ec5bede3788499a5365cdf0408e644d
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 public 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;