[netcore] Ongoing work. (#13391)
[mono-project.git] / mono / tests / calliGenericTest.il
blob4e3f39f2533f208d16100884e68fad85a4599e1a
1 //Tests ldftn and calli with generic return signature
3 .assembly extern mscorlib{}
4 .assembly someTest{}
5 .module someTest
7 .class public auto ansi beforefieldinit Test`1<T>
8   extends [mscorlib]System.Object
10     // method line 1
11     .method public hidebysig
12            static default void test (native int ptr)  cil managed 
13     {
14         .maxstack 8
15         ldarg ptr
16         calli !T()
17         call void class [mscorlib]System.Console::WriteLine(int32)
18         ret 
19     }
21         
22 .class private auto ansi someTest
23        extends [mscorlib]System.Object {
24            
25   .method public static void  go() cil managed {
26     .entrypoint
28         ldftn int32 [mscorlib]System.Environment::get_ProcessorCount()
29         call void class Test`1<int32>::test(native int)
30         ret
31   }
32