2007-03-28 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mono / tests / static-ctor.cs
blobcfae3d153cebe93364eab1c667dfbc2648594690
1 using System;
3 class X {
4 static X ()
6 test.global = 1;
10 class Y : X {
13 class Z : Y {
14 public Z ()
19 class test {
20 static public int global;
22 static int Main ()
24 Z z = new Z ();
26 if (global != 1){
27 Console.WriteLine ("Error");
28 return 1;
30 Console.WriteLine ("Ok");
31 return 0;