repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove NotWorking
[mcs.git]
/
tests
/
test-anon-81.cs
blob
fbd065d096bf27b05af8db0df448470e23eae62a
1
using
System
;
2
3
class
C
4
{
5
public static int
Main
()
6
{
7
if
(
new
C
().
Test
() !=
6
)
8
return
1
;
9
10
return
0
;
11
}
12
13
public delegate void
Cmd
();
14
public delegate int
Cmd2
();
15
16
int
Test
()
17
{
18
int
r
=
Foo2
(
delegate
() {
19
int
x
=
4
;
20
Foo
(
delegate
() {
21
int
y
=
6
;
22
Foo
(
delegate
() {
23
x
=
y
;
24
});
25
});
26
return
x
;
27
});
28
29
Console
.
WriteLine
(
r
);
30
return
r
;
31
}
32
33
int
Foo2
(
Cmd2 cmd
)
34
{
35
return
cmd
();
36
}
37
38
void
Foo
(
Cmd cmd
)
39
{
40
cmd
();
41
}
42
}