1 // Compiler options: -optimize+
\r
4 using System.Reflection;
\r
15 int i = default (int);
\r
16 double d = default (double);
\r
17 char c = default (char);
\r
18 bool b = default (bool);
\r
19 decimal dec2 = default (decimal);
\r
20 object o = default (object);
\r
21 ValueType BoolVal = default (ValueType);
\r
24 int[] a_i = default(int[]);
\r
25 object[] a_o = default(object[]);
\r
26 ValueType[] a_v = default(ValueType[]);
\r
28 event D Ev1 = default(D);
\r
33 const int i = default (int);
\r
34 const double d = default (double);
\r
35 const char c = default (char);
\r
36 const bool b = default (bool);
\r
37 const decimal dec2 = default (decimal);
\r
38 const object o = default (object);
\r
39 const ValueType BoolVal = default (ValueType);
\r
40 const E e = default (E);
\r
42 const int[] a_i = default(int[]);
\r
43 const object[] a_o = default(object[]);
\r
44 const ValueType[] a_v = default(ValueType[]);
\r
51 ConstructorInfo mi = typeof(C).GetConstructors ()[0];
\r
52 MethodBody mb = mi.GetMethodBody();
\r
54 if (mb.GetILAsByteArray ().Length != 7) {
\r
55 Console.WriteLine("Optimization failed");
\r
59 Console.WriteLine ("OK");
\r