diff options
Diffstat (limited to 'ocaml-binary-annot/testsuite/tests/tool-ocaml/t130-vectlength.ml')
| -rw-r--r-- | ocaml-binary-annot/testsuite/tests/tool-ocaml/t130-vectlength.ml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ocaml-binary-annot/testsuite/tests/tool-ocaml/t130-vectlength.ml b/ocaml-binary-annot/testsuite/tests/tool-ocaml/t130-vectlength.ml new file mode 100644 index 0000000000..ce0da0e420 --- /dev/null +++ b/ocaml-binary-annot/testsuite/tests/tool-ocaml/t130-vectlength.ml @@ -0,0 +1,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 +**) |
