X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Ftest-cls-17.cs;h=aa0415c52c472b65303d832cae24bf8128f0c351;hb=f304ca8be1b8bfcc34c069cb062c2b0a6ef5fd57;hp=6d62d5eb2f6947f9f2dafb687850936db6ab127b;hpb=a57ea8054f9aa8d23cc011720f32a36321d97b0c;p=mono.git diff --git a/mcs/tests/test-cls-17.cs b/mcs/tests/test-cls-17.cs index 6d62d5eb2f6..aa0415c52c4 100644 --- a/mcs/tests/test-cls-17.cs +++ b/mcs/tests/test-cls-17.cs @@ -1,10 +1,20 @@ -// This code issues CS3014 error in csc ersion 1.1 +// Compiler options: -warnaserror + +// This code used to issue CS3014 errors in csc version 1.1 using System; [assembly: CLSCompliant(false)] [CLSCompliant(true)] -public class Foo { +public enum E +{ + Value +} + +[CLSCompliant(true)] +public class Foo +{ + public E e; public static void Main () {} } \ No newline at end of file