merge r67228-r67235, r67237, r67251 and r67256-67259 to trunk (they are
[mono.git] / mono / tests / verifier / unverifiable_call_private.il
1 // Invalid CIL which breaks the ECMA-335,III,3.19 rule. 
2 // This CIL should fail verification by a conforming CLI verifier.
3
4 .class c
5 {
6         .method private static int32 f(int32 i) cil managed
7         {
8                 ldc.i4.0
9                 ret
10         }
11 }
12
13 .method public static int32 Main() cil managed
14 {
15         .entrypoint
16         .maxstack 1
17         ldc.i4.0
18         call int32 c::f(int32) // Unverifiable, private method.
19         ret
20 }