Merge pull request #1439 from BrzVlad/feature-managed-allocator
[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
5 .assembly unverifiable_private_call_generated
6 {
7   .hash algorithm 0x00008004
8   .ver  0:0:0:0
9 }
10
11 .class c
12 {
13         .method private static int32 f(int32 i) cil managed
14         {
15                 ldc.i4.0
16                 ret
17         }
18 }
19
20 .method public static int32 Main() cil managed
21 {
22         .entrypoint
23         .maxstack 1
24         ldc.i4.0
25         call int32 c::f(int32) // Unverifiable, private method.
26         ret
27 }