Merge pull request 2899 from krytarowski/netbsd-support-1
[mono.git] / mono / tests / verifier / invalid_fallthru_into_handler_block.il
1
2 //This scenario is not quite possible, as the only block before the handler is the filter block
3 //So we test a filter without endfilter at end
4 .assembly 'invalid_fallthru_into_handler_block'
5 {
6   .hash algorithm 0x00008004
7   .ver  0:0:0:0
8 }
9
10 .method public static int32 Main() cil managed
11 {
12         .entrypoint
13         .maxstack 8
14         .locals init (int32 V0)
15         
16
17 BB_00:
18                 newobj instance void class [mscorlib]System.Exception::.ctor()
19                 throw
20                 leave END
21 BB_01:
22
23 BB_02:
24                 pop
25                 nop
26                 nop
27 BB_03:
28
29
30 BB_04:
31                 nop
32                 nop
33                 leave END
34 BB_05:
35
36 END:
37         ldc.i4.0
38         ret
39
40 .try BB_00 to BB_01 filter BB_02 handler BB_04 to BB_05
41
42
43 }