2010-06-21 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / ilasm / tests / test-27.il
blob93ca36f6c8b467977b9fd8f1edde9c511f62e1f0
1 //
2 // Mono.ILASM.Tests
3 //
4 // Author(s):
5 //  Ben Maurer
6 //  Jackson Harper (Jackson@LatitudeGeo.com)
7 //
8 // (C) 2003 Ben Maurer, All rights reserved
9 // (C) 2003 Jackson Harper, All rights reserved
12 .class public Bug {
13 .method public static   int32 main(class [mscorlib]System.String[]) {
14 .entrypoint
15 .maxstack               8
16         ldc.i4          0
17         ldc.i4          0
18         ceq
19         brfalse         FAIL
20         
21 try_start:
22         leave           try_end
23 try_end:
25 handler:
26         leave           FAIL
27 end_handler:
28         br              PASS
30 PASS:
31         ldc.i4          0
32         ret
33 FAIL:
34         ldc.i4          1
35         ret
36 .try try_start to try_end catch [mscorlib]System.Exception handler
37 handler to end_handler