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
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
tests
/
test-335.cs
blob
2b128cc13e3fcbd87ca56ec932a1cd2abf36f2f0
1
class
X
{
2
delegate void
B
(
int
a
,
int
b
);
3
static void
A
(
int
a
,
int
b
) {}
4
5
delegate void
D
(
out int
a
);
6
static void
C
(
out int
a
)
{ a = 5; }
7
8
static void
Main
()
9
{
10
(
new
B
(
A
)) (
1
,
2
);
11
12
int
x
=
0
;
13
(
new
D
(
C
)) (
out
x
);
14
if
(
x
!=
5
)
15
throw new
System
.
Exception
(
"The value of x is "
+
x
);
16
}
17
}