[msvc] Update csproj files (#5745)
[mono.git] / mcs / tests / test-101.cs
index 94ed3e1342162a27a3bc477b69dcf1404f25afe3..38bd565edac1fad2b0ff7b14877a05c7f5f5c613 100644 (file)
@@ -3,7 +3,6 @@ using System.Reflection;
 
 namespace Test {
        
-               [AttributeUsage (AttributeTargets.All)]
        public class MyAttribute: Attribute {
                public string val;
                public MyAttribute (string stuff) {
@@ -12,7 +11,6 @@ namespace Test {
                }
        }
        
-               [AttributeUsage (AttributeTargets.All)]
        public class My2Attribute: MyAttribute {
                public int ival;
                public My2Attribute (string stuff, int blah) : base (stuff) {
@@ -20,11 +18,16 @@ namespace Test {
                        ival = blah;
                }
        }
+
+       [Flags, ]
+       enum X {
+               A, B
+       }
        
        [My("testclass")]
        [My2("testclass", 22)]
        public class Test {
-               static public int Main() {
+               public static int Main() {
                        System.Reflection.MemberInfo info = typeof (Test);
                        object[] attributes = info.GetCustomAttributes (false);
                        for (int i = 0; i < attributes.Length; i ++) {