projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* expression.cs (Invocation.IsApplicable): Reorganize slightly to
[mono.git]
/
mcs
/
tests
/
test-anon-09.cs
1
//
2
// Tests unary mutator operators on captured variables
3
//
4
using System;
5
6
class X {
7
delegate void D ();
8
9
static int gt, gj;
10
11
static int Main ()
12
{
13
int times = 0;
14
15
D d = delegate {
16
int t = times++;
17
int j = ++times;
18
19
gt = t;
20
gj = j;
21
};
22
d ();
23
24
if (gt != 0)
25
return 1;
26
if (gj != 2)
27
return 2;
28
29
return 0;
30
}
31
}