diff options
Diffstat (limited to 'ocaml-binary-annot/testsuite/tests/tool-ocaml/t110-modint-2.ml')
| -rw-r--r-- | ocaml-binary-annot/testsuite/tests/tool-ocaml/t110-modint-2.ml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ocaml-binary-annot/testsuite/tests/tool-ocaml/t110-modint-2.ml b/ocaml-binary-annot/testsuite/tests/tool-ocaml/t110-modint-2.ml new file mode 100644 index 0000000000..0bc3be0c3c --- /dev/null +++ b/ocaml-binary-annot/testsuite/tests/tool-ocaml/t110-modint-2.ml @@ -0,0 +1,34 @@ +open Lib;; +try + ignore (2 mod 0); + raise Not_found; +with Division_by_zero -> () +;; + +(** + 0 CONSTINT 42 + 2 PUSHACC0 + 3 MAKEBLOCK1 0 + 5 POP 1 + 7 SETGLOBAL Lib + 9 PUSHTRAP 19 + 11 CONST0 + 12 PUSHCONST2 + 13 MODINT + 14 GETGLOBAL Not_found + 16 MAKEBLOCK1 0 + 18 RAISE + 19 PUSHGETGLOBAL Division_by_zero + 21 PUSHACC1 + 22 GETFIELD0 + 23 EQ + 24 BRANCHIFNOT 29 + 26 CONST0 + 27 BRANCH 31 + 29 ACC0 + 30 RAISE + 31 POP 1 + 33 ATOM0 + 34 SETGLOBAL T110-modint-2 + 36 STOP +**) |
