Merge pull request #5382 from kumpera/pedump_fix
[mono.git] / mono / tests / verifier / invalid_ldsfld_nonstatic_fld.il
1 // Invalid CIL which breaks the ECMA-335,III,4.14 rules. 
2 // This CIL should fail verification by a conforming CLI verifier.
3
4
5 .assembly 'test_generated'
6 {
7   .hash algorithm 0x00008004
8   .ver  0:0:0:0
9 }
10
11 .class public auto ansi beforefieldinit c
12         extends [mscorlib]System.Object
13 {
14         .field public int32 nonstatic
15 }
16
17 .method public static int32 Main() cil managed
18 {
19         .entrypoint
20         .maxstack 2
21         ldsfld int32 c::nonstatic // Field nonstatic is not static.
22         ret
23 }