Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / classinit.cs
1 using System;
2
3 class Foo {
4
5         static public int i = 0;
6 }
7
8 class Bar {
9
10         static public int j;
11
12         static Bar () {
13                 j = Foo.i;
14         }
15 }
16
17 class Bug {
18
19         static public int Main () {
20                 Foo.i = 5;
21                 if (Bar.j != 5)
22                         return 1;
23
24                 return 0;
25         }
26 }