Merge pull request #2720 from mono/fix-39325
[mono.git] / mono / tests / verifier / valid_ldfld_valuetype_by_ref.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 private sequential ansi sealed beforefieldinit MyVT
12         extends [mscorlib]System.ValueType
13 {
14         .field public [mscorlib]System.Decimal Value
15 }
16
17
18 .method public static int32 Main() cil managed
19 {
20         .entrypoint
21         .maxstack 8
22         .locals init (MyVT V_0)
23
24         ldloca 0
25         ldfld valuetype [mscorlib]System.Decimal MyVT::Value
26         pop
27
28         ldc.i4.0
29         ret
30 }