X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Ftest-500.cs;h=dd2ca605bc6315beb6ca5b38fd6f820a65b52ef9;hb=44a2d35676fac7c3672de43b72bbf6e05d06b95c;hp=4fc55f12b0d31c1bedc3311d8451081baff508af;hpb=5d9434fcb3acc1ed7d3d30603faae797d672fe65;p=mono.git diff --git a/mcs/tests/test-500.cs b/mcs/tests/test-500.cs index 4fc55f12b0d..dd2ca605bc6 100644 --- a/mcs/tests/test-500.cs +++ b/mcs/tests/test-500.cs @@ -1,35 +1,35 @@ -using System; -using System.Reflection; - -[AttributeUsage(AttributeTargets.Field, AllowMultiple=false)] -class SomeCustomAttribute : Attribute { - public SomeCustomAttribute () - { - } -} - -class MainClass { - - [SomeCustomAttribute] - public int a; - - [SomeCustomAttribute] - public int x, y; - - public static int Main () - { - Type t = typeof (MainClass); - FieldInfo[] fia = t.GetFields(); - - foreach (FieldInfo fi in fia) { - object[] ca = fi.GetCustomAttributes(typeof (SomeCustomAttribute), false); - System.Console.WriteLine ("Field: {0} [{1}]", fi.Name, ca.Length); - if (ca.Length != 1) - return 1; - } - - Console.WriteLine ("OK"); - - return 0; - } +using System; +using System.Reflection; + +[AttributeUsage(AttributeTargets.Field, AllowMultiple=false)] +class SomeCustomAttribute : Attribute { + public SomeCustomAttribute () + { + } +} + +class MainClass { + + [SomeCustomAttribute] + public int a; + + [SomeCustomAttribute] + public int x, y; + + public static int Main () + { + Type t = typeof (MainClass); + FieldInfo[] fia = t.GetFields(); + + foreach (FieldInfo fi in fia) { + object[] ca = fi.GetCustomAttributes(typeof (SomeCustomAttribute), false); + System.Console.WriteLine ("Field: {0} [{1}]", fi.Name, ca.Length); + if (ca.Length != 1) + return 1; + } + + Console.WriteLine ("OK"); + + return 0; + } } \ No newline at end of file