summaryrefslogtreecommitdiff
path: root/testsuite/tests/tool-ocaml/t130-vectlength.ml
blob: ce0da0e420a2b5f1147f3e303a65892ad72ccfd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
open Lib;;
if Array.length [| 1; 2 |] <> 2 then raise Not_found;;

(**
       0 CONSTINT 42
       2 PUSHACC0 
       3 MAKEBLOCK1 0
       5 POP 1
       7 SETGLOBAL Lib
       9 CONST2 
      10 PUSHCONST2 
      11 PUSHCONST1 
      12 MAKEBLOCK2 0
      14 VECTLENGTH 
      15 NEQ 
      16 BRANCHIFNOT 23
      18 GETGLOBAL Not_found
      20 MAKEBLOCK1 0
      22 RAISE 
      23 ATOM0 
      24 SETGLOBAL T130-vectlength
      26 STOP 
**)