remove NotWorking
[mcs.git] / tests / test-329.cs
blob3ef16470b75db94b78b5d0badd1b3268bbc202ca
1 using System;
3 [X (null)]
4 class X : Attribute {
5 int ID;
6 public X () {}
7 public X (object o)
8 {
9 if (o == null)
10 ID = 55;
13 static int Main () {
14 object[] attrs = typeof(X).GetCustomAttributes(typeof (X),false);
15 if (attrs.Length != 1)
16 return 2;
18 X x = attrs [0] as X;
19 if (x.ID != 55)
20 return 2;
22 Console.WriteLine("OK");
23 return 0;