Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2008-12-19 18:02:59 +0300
committerMarek Safar <marek.safar@gmail.com>2008-12-19 18:02:59 +0300
commita57ea8054f9aa8d23cc011720f32a36321d97b0c (patch)
treeeb94a4bc1301aa2f499310c4790b591028d22742 /mcs/tests/test-492.cs
parent3c666ed0337fc5bbbbb5ec6322826573d5509297 (diff)
Set svn:eol-style
svn path=/trunk/mcs/; revision=121849
Diffstat (limited to 'mcs/tests/test-492.cs')
-rw-r--r--mcs/tests/test-492.cs106
1 files changed, 53 insertions, 53 deletions
diff --git a/mcs/tests/test-492.cs b/mcs/tests/test-492.cs
index 45ed1bdbfde..45d65cf0f06 100644
--- a/mcs/tests/test-492.cs
+++ b/mcs/tests/test-492.cs
@@ -1,53 +1,53 @@
-using System;
-using System.Reflection;
-
-namespace Test {
- [AttributeUsage (AttributeTargets.All, AllowMultiple = true)]
- public class My1Attribute : Attribute
- {
- public My1Attribute (object o)
- {
- if (o != null)
- throw new ApplicationException ();
- }
- }
-
- public class My2Attribute : Attribute
- {
- public My2Attribute (string[] s)
- {
- if (s.Length != 0)
- throw new ApplicationException ();
- }
- }
-
- public class My3Attribute : Attribute
- {
- public My3Attribute (byte b)
- {
- if (b != 0xFF)
- throw new ApplicationException ();
- }
- }
-
-
- [My3(unchecked((byte)-1))]
- [My1((object)null)]
- [My1(null)]
- [My2(new string[0])]
- public class Test {
- static public int Main() {
- System.Reflection.MemberInfo info = typeof (Test);
- object[] attributes = info.GetCustomAttributes (false);
-
- if (attributes.Length != 4)
- return 1;
-
- for (int i = 0; i < attributes.Length; i ++) {
- Console.WriteLine (attributes [i]);
- }
-
- return 0;
- }
- }
-}
+using System;
+using System.Reflection;
+
+namespace Test {
+ [AttributeUsage (AttributeTargets.All, AllowMultiple = true)]
+ public class My1Attribute : Attribute
+ {
+ public My1Attribute (object o)
+ {
+ if (o != null)
+ throw new ApplicationException ();
+ }
+ }
+
+ public class My2Attribute : Attribute
+ {
+ public My2Attribute (string[] s)
+ {
+ if (s.Length != 0)
+ throw new ApplicationException ();
+ }
+ }
+
+ public class My3Attribute : Attribute
+ {
+ public My3Attribute (byte b)
+ {
+ if (b != 0xFF)
+ throw new ApplicationException ();
+ }
+ }
+
+
+ [My3(unchecked((byte)-1))]
+ [My1((object)null)]
+ [My1(null)]
+ [My2(new string[0])]
+ public class Test {
+ static public int Main() {
+ System.Reflection.MemberInfo info = typeof (Test);
+ object[] attributes = info.GetCustomAttributes (false);
+
+ if (attributes.Length != 4)
+ return 1;
+
+ for (int i = 0; i < attributes.Length; i ++) {
+ Console.WriteLine (attributes [i]);
+ }
+
+ return 0;
+ }
+ }
+}