monotouch uses the real HttpWebRequest
[mcs.git] / tests / test-458.cs
blob3bba9358ce9c1b1e66e247c0ded9a91915fd62ba
1 // test-458.cs : for bug #75723
2 using System;
5 // The attribute
6 internal class MyAttr : Attribute {
7 internal MyAttr() { }
8 internal MyAttr(Type type) { }
9 internal MyAttr(string name) { }
10 internal MyAttr(int i) { }
13 // The Classes
14 [MyAttr()]
15 internal class ClassA { }
17 [MyAttr(typeof(string))]
18 internal class ClassB { }
20 [MyAttr("abc")]
21 internal class ClassC { }
23 [MyAttr(3)]
24 internal class ClassD { }
26 internal class Top
28 public static int Main ()
30 if (typeof (ClassA).GetCustomAttributes (false).Length != 1)
31 return 1;
33 return 0;