diff options
author | Xavier Clerc <xavier.clerc@inria.fr> | 2010-01-25 14:23:07 +0000 |
---|---|---|
committer | Xavier Clerc <xavier.clerc@inria.fr> | 2010-01-25 14:23:07 +0000 |
commit | b9aea322525fadbc401c525739550a7a77209f2c (patch) | |
tree | 357f8fff6f8adfc3b83ba2d8f0d533e41f34852a /testsuite/tests/tool-ocaml/t180-appterm1.ml | |
parent | 1c8ffcff228613bb08378d255c281e3a5575fd71 (diff) | |
download | ocaml-b9aea322525fadbc401c525739550a7a77209f2c.tar.gz |
Tests moved to 'tool-ocaml'
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9579 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'testsuite/tests/tool-ocaml/t180-appterm1.ml')
-rw-r--r-- | testsuite/tests/tool-ocaml/t180-appterm1.ml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testsuite/tests/tool-ocaml/t180-appterm1.ml b/testsuite/tests/tool-ocaml/t180-appterm1.ml new file mode 100644 index 0000000000..6b82f51b61 --- /dev/null +++ b/testsuite/tests/tool-ocaml/t180-appterm1.ml @@ -0,0 +1,35 @@ +open Lib;; +let f _ = 12 in +let g _ = f 0 in +if g 0 <> 12 then raise Not_found +;; + +(** + 0 CONSTINT 42 + 2 PUSHACC0 + 3 MAKEBLOCK1 0 + 5 POP 1 + 7 SETGLOBAL Lib + 9 BRANCH 19 + 11 CONST0 + 12 PUSHENVACC1 + 13 APPTERM1 2 + 15 CONSTINT 12 + 17 RETURN 1 + 19 CLOSURE 0, 15 + 22 PUSHACC0 + 23 CLOSURE 1, 11 + 26 PUSHCONSTINT 12 + 28 PUSHCONST0 + 29 PUSHACC2 + 30 APPLY1 + 31 NEQ + 32 BRANCHIFNOT 39 + 34 GETGLOBAL Not_found + 36 MAKEBLOCK1 0 + 38 RAISE + 39 POP 2 + 41 ATOM0 + 42 SETGLOBAL T180-appterm1 + 44 STOP +**) |