New test.
[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 .class public auto ansi beforefieldinit c
5         extends [mscorlib]System.Object
6 {
7         .field public int32 nonstatic
8 }
9
10 .method public static int32 Main() cil managed
11 {
12         .entrypoint
13         .maxstack 2
14         ldsfld int32 c::nonstatic // Field nonstatic is not static.
15         ret
16 }