**** Merged from MCS ****
[mono-project.git] / mcs / tests / test-232.cs
blob119d43b3ce74faf4e6846a0df7e2b6cadde3bc1f
1 using System;
2 using System.Reflection;
4 public class CtorInfoTest
6 public static void Main(string[] args)
8 // uses static initialization
9 int[] iarray = // int array, int constants
20 // mcs used to throw with 7 or more elements in the array initializer
21 ConstructorInfo[] ciarray = // ref array, null constants
23 null,
24 null,
25 null,
26 null,
27 null,
28 null,
29 null,
32 string[] scarray = // string array, string constants
34 "a",
35 "b",
36 "c",
37 "d",
38 "e",
39 "f",
40 "g",
43 string[] snarray = // string array, null constants
45 null,
46 null,
47 null,
48 null,
49 null,
50 null,
51 null,
54 decimal[] darray = // decimal constants
56 0M,
57 1M,
58 2M,
59 3M,
60 4M,
61 5M,
62 6M,
63 7M,
66 IConvertible[] lcarray = // boxed integer constants
77 AttributeTargets[] atarray = // enum constants
79 AttributeTargets.Assembly,
80 AttributeTargets.Module,
81 AttributeTargets.Class,
82 AttributeTargets.Struct,
83 AttributeTargets.Enum,
84 AttributeTargets.Constructor,
85 AttributeTargets.Method,
86 AttributeTargets.Property,
87 AttributeTargets.Field,
88 AttributeTargets.Event,
89 AttributeTargets.Interface,
90 AttributeTargets.Parameter,
91 AttributeTargets.Delegate,
92 AttributeTargets.ReturnValue,
93 AttributeTargets.All,
96 System.Enum[] eatarray = // boxed enum constants
98 AttributeTargets.Assembly,
99 AttributeTargets.Module,
100 AttributeTargets.Class,
101 AttributeTargets.Struct,
102 AttributeTargets.Enum,
103 AttributeTargets.Constructor,
104 AttributeTargets.Method,
105 AttributeTargets.Property,
106 AttributeTargets.Field,
107 AttributeTargets.Event,
108 AttributeTargets.Interface,
109 AttributeTargets.Parameter,
110 AttributeTargets.Delegate,
111 AttributeTargets.ReturnValue,
112 AttributeTargets.All,