repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[interp] Reduce computation under calc_section mutex
[mono-project.git]
/
mcs
/
tests
/
test-475.cs
blob
ae9394722d546676a0728f45346568f7a05d06b1
1
using
System
;
2
3
public delegate void
MyDelegate
(
int
a
);
4
5
public class
X
6
{
7
static event
MyDelegate e
=
X
.
Test
;
8
static int
cc
=
4
;
9
10
static void
Test
(
int
foo
)
11
{
12
X
.
cc
=
foo
;
13
Console
.
WriteLine
(
"OK"
);
14
}
15
16
public static int
Main
()
17
{
18
e
(
10
);
19
if
(
cc
!=
10
)
20
return
1
;
21
22
return
0
;
23
}
24
}