1 // Compiler options: -optimize+
4 using System
.Reflection
;
17 double d
= new double ();
20 decimal dec2
= new decimal ();
22 ValueType BoolVal
= (ValueType
)null;
28 ValueType
[] a_v
= null;
33 public static event D Ev1
= null;
34 public static event D Ev2
= null;
35 protected static string temp
= null, real_temp
= null;
54 if ((typeof (X2
).Attributes
& TypeAttributes
.BeforeFieldInit
) == 0)
58 ConstructorInfo mi
= typeof(C
).GetConstructors ()[0];
59 MethodBody mb
= mi
.GetMethodBody();
61 if (mb
.GetILAsByteArray ().Length
!= 7) {
62 Console
.WriteLine("Optimization failed");
67 Console
.WriteLine ("OK");