blob: 5d806419cc41bed24db00667fee218fa1bffbfb9 (
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
32
33
34
35
36
37
38
39
40
41
42
|
(* TEST
include tool-ocaml-lib
flags = "-w -a"
ocaml_script_as_argument = "true"
* setup-ocaml-build-env
** ocaml
*)
open Lib;;
type t =
| A
| B of int
| C of int
;;
match A with
| A -> ()
| _ -> raise Not_found
;;
(**
0 CONSTINT 42
2 PUSHACC0
3 MAKEBLOCK1 0
5 POP 1
7 SETGLOBAL Lib
9 CONST0
10 PUSHACC0
11 SWITCH
int 0 -> 16
tag 0 -> 19
tag 1 -> 19
16 CONST0
17 BRANCH 24
19 GETGLOBAL Not_found
21 MAKEBLOCK1 0
23 RAISE
24 POP 1
26 ATOM0
27 SETGLOBAL T142-switch-8
29 STOP
**)
|