repo.or.cz
/
mono.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git]
/
mono
/
tests
/
classinit.cs
blob
781f7e097155b5a37d4690744e6e8a925989c190
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
}