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
2007-12-06 Jb Evain <jbevain@novell.com>
[mono.git]
/
mono
/
tests
/
static-ctor.cs
blob
cfae3d153cebe93364eab1c667dfbc2648594690
1
using
System
;
2
3
class
X
{
4
static
X
()
5
{
6
test
.
global
=
1
;
7
}
8
}
9
10
class
Y
:
X
{
11
}
12
13
class
Z
:
Y
{
14
public
Z
()
15
{
16
}
17
}
18
19
class
test
{
20
static public int global
;
21
22
static int
Main
()
23
{
24
Z z
=
new
Z
();
25
26
if
(
global
!=
1
){
27
Console
.
WriteLine
(
"Error"
);
28
return
1
;
29
}
30
Console
.
WriteLine
(
"Ok"
);
31
return
0
;
32
}
33
}