summaryrefslogtreecommitdiff
path: root/ocaml-binary-annot/testsuite/tests/tool-ocaml/t190-makefloatblock-2.ml
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml-binary-annot/testsuite/tests/tool-ocaml/t190-makefloatblock-2.ml')
-rw-r--r--ocaml-binary-annot/testsuite/tests/tool-ocaml/t190-makefloatblock-2.ml18
1 files changed, 18 insertions, 0 deletions
diff --git a/ocaml-binary-annot/testsuite/tests/tool-ocaml/t190-makefloatblock-2.ml b/ocaml-binary-annot/testsuite/tests/tool-ocaml/t190-makefloatblock-2.ml
new file mode 100644
index 0000000000..53b97f5d51
--- /dev/null
+++ b/ocaml-binary-annot/testsuite/tests/tool-ocaml/t190-makefloatblock-2.ml
@@ -0,0 +1,18 @@
+open Lib;;
+let x = 0.0 in [| x; x |];;
+
+(**
+ 0 CONSTINT 42
+ 2 PUSHACC0
+ 3 MAKEBLOCK1 0
+ 5 POP 1
+ 7 SETGLOBAL Lib
+ 9 GETGLOBAL 0
+ 11 PUSHACC0
+ 12 PUSHACC1
+ 13 MAKEFLOATBLOCK 2
+ 15 POP 1
+ 17 ATOM0
+ 18 SETGLOBAL T190-makefloatblock-2
+ 20 STOP
+**)