[runtime] Fix "make distcheck"
[mono-project.git] / mono / tests / verifier / valid_ldflda_owned_field_on_cctor.il
blobfbb52556daed9d4f5454e80b9106ff679935c754
2 // unverifiable CIL which breaks the ECMA-335 rules. 
3 // this CIL should fail verification by a conforming CLI verifier.
5 .assembly 'unverifiable_assign_compat_9_1_generated'
7   .hash algorithm 0x00008004
8   .ver  0:0:0:0
11 .assembly extern mscorlib
13   .ver 1:0:5000:0
14   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
17 .class sealed MyValueType extends [mscorlib]System.ValueType
19         .field private int32 fld
22 .class public GoodClass {
23         .field initonly valuetype MyValueType x
25 .method public specialname rtspecialname default void .ctor ()
27     .maxstack 8
28     ldarg.0
29     ldarg.0
30         ldflda valuetype MyValueType GoodClass::x
31         initobj MyValueType
32     ldarg.0
33         ldfld valuetype MyValueType GoodClass::x
34         stfld valuetype MyValueType GoodClass::x
35         ldarg.0 
36         call instance void object::.ctor()
37         ret 
43 .method public static void Main() cil managed
45         .maxstack 2
46         .entrypoint
47         ret