repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[tuner] handle the case with multiple "preserve" attributes
[mono-project.git]
/
mcs
/
tests
/
test-anon-75.cs
blob
105b4f45137aa5011811bdf53e64d1e96fd881b3
1
using
System
;
2
3
delegate bool
D
();
4
5
class
Data
6
{
7
public
D d
;
8
}
9
10
public class
Test
11
{
12
int value
;
13
D change
;
14
15
static void
Foo
(
int
i
,
D d
)
16
{
17
}
18
19
public static void
Main
()
20
{
21
}
22
23
void
TestMe
()
24
{
25
if
(
true
) {
26
Data data
=
null
;
27
if
(
data
!=
null
) {
28
D d2
=
delegate
{ return true; }
;
29
change
+=
d2
;
30
31
data
.
d
+=
delegate
{
32
change
-=
d2
;
33
Foo
(
10
,
delegate
{
34
data
=
null
;
35
return false
;
36
}
37
);
38
return true
;
39
};
40
}
41
}
42
}
43
}
44