.class private auto ansi someTest
extends [mscorlib]System.Object {
- .method public static void go() cil managed {
+ .method public static int32 Main() cil managed {
.entrypoint
+ .locals (int32 res)
+ ldc.i4 3
+ stloc res
//TEST 1 - infinite
.try {
pop
ldstr "PASS"
call void [mscorlib]System.Console::WriteLine(string)
+ ldloc res
+ ldc.i4 1
+ sub
+ stloc res
leave test2
}
catch [mscorlib]System.Exception {
catch [mscorlib]System.ArithmeticException {
ldstr "PASS"
call void [mscorlib]System.Console::WriteLine(string)
+ ldloc res
+ ldc.i4 1
+ sub
+ stloc res
leave test3
}
catch [mscorlib]System.Exception {
bne.un FAIL
ldstr "PASS"
call void [mscorlib]System.Console::WriteLine(string)
+ ldloc res
+ ldc.i4 1
+ sub
+ stloc res
leave end
FAIL: ldstr "FAIL"
leave end
}
-end: ret
+end:
+ ldloc res
+ ret
}
-}
\ No newline at end of file
+}