New test.
[mono.git] / mcs / tests / test-276.cs
1 // Test for bug #60459
2
3 using System;
4 using System.Reflection;
5
6 public class EventTestClass {
7         public event EventHandler Elapsed;
8 }
9
10 public interface IEventTest {
11         event EventHandler Elapsed;
12 }
13
14
15 public class EntryPoint
16 {
17         static bool test (Type type) { return type.GetEvent ("Elapsed").IsSpecialName; }        
18         public static int Main ()
19         {
20                 return (test (typeof (EventTestClass)) 
21                         || test (typeof (IEventTest))) ? 1 : 0;
22         }
23 }