Files
yallie 9fa3874800 Added the contents of the archive.
Moved the original file to the archive subfolder.
2017-11-20 16:11:42 +03:00

97 lines
2.1 KiB
Plaintext

.assembly extern mscorlib {}
.assembly fptr1 {
.custom instance void [mscorlib]System.Security.AllowPartiallyTrustedCallersAttribute::.ctor() = ( 01 00 00 00 )
}
.class A{
.method public static void l(){
.locals init(int32 ll)
ldftn void B::k()
pop
ret
}
}
.class B{
.method private static void k(){
.locals init(int32 ll)
ldstr "inside private"
call void [mscorlib]System.Console::WriteLine(class System.String)
ret
}
}
.class TestClass{
.method public static void t(){
.locals init(int32 ll)
call void A::l()
ldstr "returning"
call void [mscorlib]System.Console::WriteLine(class System.String)
ret
}
.method public static void Main(class ['mscorlib']System.String[] arg)
{
.entrypoint
.locals init (int32 V_1)
.try {
.try {
call void TestClass::t()
leave.s EndTry
ldstr "TEST FAILED"
call void ['mscorlib']System.Console::WriteLine(string)
ldc.i4.1
stloc V_1
leave.s EndTry
} // end try
catch ['mscorlib']System.MethodAccessException
{
pop
ldstr "TEST PASSED"
call void ['mscorlib']System.Console::WriteLine(string)
ldc.i4.0
stloc V_1
leave.s EndTry
} // end handler
EndTry: leave.s EndIL
} // end try
catch ['mscorlib']System.Exception
{
pop
ldstr "TEST FAILED"
call void ['mscorlib']System.Console::WriteLine(string)
ldc.i4.1
stloc V_1
leave.s EndIL
} // end handler
EndIL: ldloc V_1
call void [mscorlib]System.Environment::set_ExitCode(int32)
ret
ret
}
.method public specialname rtspecialname instance void .ctor() il managed
{
// Code size 7 (0x7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void ['mscorlib']System.Object::.ctor()
IL_0006: ret
} // end of method 'TestClass::.ctor'
}