diff options
Diffstat (limited to 'mcs/tests/test-290.cs')
-rw-r--r-- | mcs/tests/test-290.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/tests/test-290.cs b/mcs/tests/test-290.cs new file mode 100644 index 00000000000..905fc6a706f --- /dev/null +++ b/mcs/tests/test-290.cs @@ -0,0 +1,14 @@ +// Distilled from report in http://lists.ximian.com/archives/public/mono-devel-list/2004-September/007777.html + +using System; + +class EntryPoint { + delegate void EventHandler (object sender); + static event EventHandler FooEvent; + static void bar_f (object sender) {} + static void Main () { + if (FooEvent != null) + FooEvent (null); + object bar = new EventHandler (bar_f); + } +} |