**** Merged from MCS ****
[mono-project.git] / mcs / tests / test-276.cs
blobf10a66cd16713428303c2fcbaf507ae05cc01475
1 // Test for bug #60459
3 using System;
4 using System.Reflection;
6 public class EventTestClass {
7 public event EventHandler Elapsed;
10 public interface IEventTest {
11 event EventHandler Elapsed;
15 public class EntryPoint
17 static bool test (Type type) { return type.GetEvent ("Elapsed").IsSpecialName; }
18 public static int Main ()
20 return (test (typeof (EventTestClass))
21 || test (typeof (IEventTest))) ? 1 : 0;