dlr bug
[mcs.git] / tests / test-partial-07.cs
blobd3cb8f612d823615f22dbc4afd999257794c1f9d
1 using System;
2 using System.Reflection;
3 using System.Runtime.InteropServices;
5 [Test2]
6 public partial class Test
7 { }
10 [AttributeUsage(AttributeTargets.Struct)]
11 public partial class TestAttribute: Attribute
15 [AttributeUsage(AttributeTargets.All)]
16 public partial class Test2Attribute: Attribute
20 [TestAttribute]
21 public struct Test_2 {
24 class X
26 static int Main ()
28 if (Attribute.GetCustomAttributes (typeof (Test)).Length != 1)
29 return 1;
31 if (Attribute.GetCustomAttributes (typeof (Test_2)).Length != 1)
32 return 1;
34 Console.WriteLine ("OK");
35 return 0;