"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / tests / test-329.cs
blobb63f4a2447721bc3971d1f42bfcb379ae52c2d0d
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 public 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;