Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-276.cs
index f10a66cd16713428303c2fcbaf507ae05cc01475..f56d84eb2c98ce83e4273bf9af822d60562db98c 100644 (file)
@@ -1,23 +1,20 @@
-// Test for bug #60459
+// Compiler options: -warnaserror -warn:4
 
 using System;
-using System.Reflection;
+using System.Runtime.InteropServices;
 
-public class EventTestClass {
-        public event EventHandler Elapsed;
-}
+[StructLayout (LayoutKind.Sequential)]
+public class EventTestClass : IEventTest
+{
+       int i;
+       public event EventHandler Elapsed;
 
-public interface IEventTest {
-        event EventHandler Elapsed;
+       public static void Main ()
+       {               
+       }
 }
 
-
-public class EntryPoint
+public interface IEventTest 
 {
-       static bool test (Type type) { return type.GetEvent ("Elapsed").IsSpecialName; }        
-        public static int Main ()
-        {
-                return (test (typeof (EventTestClass)) 
-                       || test (typeof (IEventTest))) ? 1 : 0;
-        }
+       event EventHandler Elapsed;
 }