projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-02-08 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-335.cs
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
}