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
In class/Microsoft.Build.Tasks:
[mcs.git]
/
tests
/
test-anon-08.cs
blob
40602f3a2745c9266495dce407d0fb30d66e8f68
1
//
2
// Tests assignment of a captured variable to another
3
// Do not add anything else to this test.
4
//
5
delegate void
S
();
6
7
class
X
{
8
9
//
10
// DO NOT ADD ANYTHING ELSE TO THIS TEST
11
//
12
static int
Main
()
13
{
14
int
a
=
2
;
15
int
b
=
1
;
16
S d
=
delegate
{
17
a
=
b
;
18
};
19
20
return
0
;
21
}
22
}