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
2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
test-252.cs
blob
a25a64313f0e23d5b6914118ec0138b6ed54c5ba
1
// testcase from #58290
2
3
delegate void
Foo
();
4
class
A
{
5
public event
Foo Bar
;
6
7
public static void
m1
()
{ }
8
9
public static int
Main
()
10
{
11
A a
=
new
A
();
12
a
.
Bar
+=
new
Foo
(
m1
);
13
a
.
Bar
-=
new
Foo
(
m1
);
14
return
(
a
.
Bar
==
null
) ?
0
:
1
;
15
}
16
}
17