2 // enum_types.il: Tests for all the primitive types an enum basetype can have
4 // It just initialize enum values, as this is enouth to cause the type to be loaded
6 .assembly extern mscorlib
9 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
13 .hash algorithm 0x00008004
21 .class public auto ansi sealed Int8Enum
22 extends [mscorlib]System.Enum
24 .field public specialname rtspecialname int8 value__
25 .field public static literal valuetype Example.Int8Enum A = int8(0x00000000)
28 .class public auto ansi sealed UInt8Enum
29 extends [mscorlib]System.Enum
31 .field public specialname rtspecialname uint8 value__
32 .field public static literal valuetype Example.Int8Enum A = uint8(0x00000000)
35 .class public auto ansi sealed BoolEnum
36 extends [mscorlib]System.Enum
38 .field public specialname rtspecialname bool value__
39 .field public static literal valuetype Example.BoolEnum A = int8(0x00000000)
42 .class public auto ansi sealed Int16Enum
43 extends [mscorlib]System.Enum
45 .field public specialname rtspecialname int16 value__
46 .field public static literal valuetype Example.Int16Enum A = int16(0x00000000)
49 .class public auto ansi sealed UInt16Enum
50 extends [mscorlib]System.Enum
52 .field public specialname rtspecialname uint16 value__
53 .field public static literal valuetype Example.UInt16Enum A = uint16(0x00000000)
56 .class public auto ansi sealed CharEnum
57 extends [mscorlib]System.Enum
59 .field public specialname rtspecialname char value__
60 .field public static literal valuetype Example.CharEnum A = char(0x00000000)
63 .class public auto ansi sealed Int32Enum
64 extends [mscorlib]System.Enum
66 .field public specialname rtspecialname int32 value__
67 .field public static literal valuetype Example.Int32Enum A = int32(0x00000000)
70 .class public auto ansi sealed UInt32Enum
71 extends [mscorlib]System.Enum
73 .field public specialname rtspecialname uint32 value__
74 .field public static literal valuetype Example.UInt32Enum A = uint32(0x00000000)
77 .class public auto ansi sealed Int64Enum
78 extends [mscorlib]System.Enum
80 .field public specialname rtspecialname int64 value__
81 .field public static literal valuetype Example.Int64Enum A = int64(0x00000000)
84 .class public auto ansi sealed UInt64Enum
85 extends [mscorlib]System.Enum
87 .field public specialname rtspecialname uint64 value__
88 .field public static literal valuetype Example.UInt32Enum A = uint64(0x00000000)
92 .class public auto ansi sealed IntPtrEnum
93 extends [mscorlib]System.Enum
95 .field public specialname rtspecialname native int value__
96 .field public static literal valuetype Example.IntPtrEnum A = int32(0x00000000)
99 .class public auto ansi sealed UIntPtrEnum
100 extends [mscorlib]System.Enum
102 .field public specialname rtspecialname native unsigned int value__
103 .field public static literal valuetype Example.UIntPtrEnum A = int32(0x00000000)
106 .class public auto ansi beforefieldinit Bla
107 extends [mscorlib]System.Object
109 .method public hidebysig specialname rtspecialname
110 instance default void .ctor () cil managed
114 call instance void object::.ctor()
118 .method private static hidebysig
119 default int32 Main (string[] args) cil managed
124 valuetype Example.Int8Enum V_0,
125 valuetype Example.UInt8Enum V_1,
126 valuetype Example.BoolEnum V_2,
128 valuetype Example.Int16Enum V_3,
129 valuetype Example.UInt16Enum V_4,
130 valuetype Example.CharEnum V_5,
132 valuetype Example.Int32Enum V_6,
133 valuetype Example.UInt32Enum V_7,
135 valuetype Example.Int64Enum V_8,
136 valuetype Example.UInt64Enum V_9,
138 valuetype Example.IntPtrEnum V_10,
139 valuetype Example.UIntPtrEnum V_11