Merge pull request #656 from LogosBible/collection_lock
[mono.git] / mono / tests / verifier / valid_ldelema_enum_array.il
1
2 // valid CIL which breaks the ECMA-335 rules. 
3 // this CIL should fail verification by a conforming CLI verifier.
4
5 .assembly 'valid_bin_cgt_un_null_value_generated'
6 {
7   .hash algorithm 0x00008004
8   .ver  0:0:0:0
9 }
10
11 .class public auto ansi sealed MyEnum extends [mscorlib]System.Enum
12 {
13         .field  public specialname  rtspecialname  int32 value__
14         .field public static  literal  valuetype MyEnum Boolean = int32(0x00000026)
15 }
16
17
18 .method public static int32 Main() cil managed
19 {
20         .entrypoint
21         .maxstack 8
22         .locals init (MyEnum[] arr)
23
24         ldc.i4.1
25         newarr MyEnum
26         stloc.0
27
28         ldloc.0
29         ldc.i4.0
30         ldelema MyEnum
31         pop             
32
33         ldc.i4.0
34         ret
35 }