copied mono-api-diff.cs from mono-2-2 branch so new patch can be applied and history...
[mono.git] / mono / tests / metadata-verifier / assembly-with-calli.il
1 .assembly extern mscorlib
2 {
3   .ver 2:0:0:0
4   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
5 }
6 .assembly 'simple_assembly'
7 {
8   .hash algorithm 0x00008004
9   .ver  0:0:0:0
10 }
11
12 .module simple_assembly.exe
13
14 .class private auto ansi beforefieldinit Program extends [mscorlib]System.Object
15 {
16         .method public static int32 SimpleMethod (int32 foo) cil managed
17         {
18                 ldc.i4.0
19                 ret
20         }
21
22         .method public static void MethodWithCalli () cil managed
23         {
24                 ldftn int32 class Program::SimpleMethod (int32)
25                 ldc.i4.1
26                 calli unmanaged cdecl int32 (int32) 
27                 pop
28                 ret
29         }
30
31         .method public static void Main () cil managed 
32         {
33                 .entrypoint
34                 .maxstack 8
35                 ret 
36         }
37
38 }
39
40