"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / tests / test-637.cs
blob9519fb10e8fa03beb4b297cf57046dfb62a0f194
1 using System;
3 struct S {}
5 class A : Attribute
7 public A ()
11 public A (object value)
13 Value = (Type) value;
16 public Type Value { get; set; }
19 [A (Value = typeof (S*))]
20 class TestProp
24 [A (typeof (ushort**))]
25 public class Test
27 public static int Main ()
29 A a = (A)typeof (Test).GetCustomAttributes (false)[0];
30 if (a.Value != typeof (ushort**))
31 return 1;
33 a = (A)typeof (TestProp).GetCustomAttributes (false)[0];
34 if (a.Value != typeof (S*))
35 return 2;
37 return 0;