X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Ftest-276.cs;h=f56d84eb2c98ce83e4273bf9af822d60562db98c;hb=100bd760a46811121b4b47ebba941d4fb98486ab;hp=f10a66cd16713428303c2fcbaf507ae05cc01475;hpb=c39d7ce9985a7067c1cbf44188007c9433901940;p=mono.git diff --git a/mcs/tests/test-276.cs b/mcs/tests/test-276.cs index f10a66cd167..f56d84eb2c9 100644 --- a/mcs/tests/test-276.cs +++ b/mcs/tests/test-276.cs @@ -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; }