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