summaryrefslogtreecommitdiff
path: root/testsuite/tests/tool-ocaml/t140-switch-4.ml
blob: 1826b09e5dfd5e8c7b15109531e918dec7954d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
open Lib;;
match -1 with
| 0 -> raise Not_found
| 1 -> raise Not_found
| _ -> ()
;;

(**
       0 CONSTINT 42
       2 PUSHACC0 
       3 MAKEBLOCK1 0
       5 POP 1
       7 SETGLOBAL Lib
       9 CONSTINT -1
      11 PUSHACC0 
      12 SWITCH 
        int 0 -> 18
        int 1 -> 23
      16 BRANCH 28
      18 GETGLOBAL Not_found
      20 MAKEBLOCK1 0
      22 RAISE 
      23 GETGLOBAL Not_found
      25 MAKEBLOCK1 0
      27 RAISE 
      28 CONST0 
      29 POP 1
      31 ATOM0 
      32 SETGLOBAL T140-switch-4
      34 STOP 
**)