projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[System.Xaml] Fix deadlock on exception in XamlBackgroundReader
[mono.git]
/
mcs
/
tests
/
test-anon-78.cs
1
using System;
2
3
delegate void D1 ();
4
delegate void D2 ();
5
6
public class DelegateTest {
7
static void Foo (D1 d)
8
{
9
d ();
10
}
11
12
static void Foo (D2 d)
13
{
14
}
15
16
static int counter = 99;
17
public static int Main ()
18
{
19
Foo (new D1 (delegate {
20
counter = 82;
21
Console.WriteLine ("In");
22
}));
23
24
if (counter != 82)
25
return 1;
26
27
return 0;
28
}
29
}
30
31