diff options
Diffstat (limited to 'mcs/ilasm/tests/test-27.il')
-rw-r--r-- | mcs/ilasm/tests/test-27.il | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/mcs/ilasm/tests/test-27.il b/mcs/ilasm/tests/test-27.il new file mode 100644 index 00000000000..93ca36f6c8b --- /dev/null +++ b/mcs/ilasm/tests/test-27.il @@ -0,0 +1,41 @@ +// +// Mono.ILASM.Tests +// +// Author(s): +// Ben Maurer +// Jackson Harper (Jackson@LatitudeGeo.com) +// +// (C) 2003 Ben Maurer, All rights reserved +// (C) 2003 Jackson Harper, All rights reserved +// + +.class public Bug { +.method public static int32 main(class [mscorlib]System.String[]) { +.entrypoint +.maxstack 8 + ldc.i4 0 + ldc.i4 0 + ceq + brfalse FAIL + +try_start: + leave try_end +try_end: + +handler: + leave FAIL +end_handler: + br PASS + +PASS: + ldc.i4 0 + ret +FAIL: + ldc.i4 1 + ret +.try try_start to try_end catch [mscorlib]System.Exception handler +handler to end_handler +} +} + + |