add ISafeSerializationData
[mcs.git] / tests / test-276.cs
bloba858dacd2f5f047e6f62eb3259f79819a34b95d2
1 // Compiler options: -warnaserror -warn:4
3 using System;
4 using System.Reflection;
6 public class EventTestClass : IEventTest {
7 public event EventHandler Elapsed; // No warning is reported
10 public interface IEventTest {
11 event EventHandler Elapsed;
15 public class EntryPoint
17 public 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;