summaryrefslogtreecommitdiff
path: root/testsuite/tests/translprim/array_spec.ml
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/translprim/array_spec.ml')
-rw-r--r--testsuite/tests/translprim/array_spec.ml12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/translprim/array_spec.ml b/testsuite/tests/translprim/array_spec.ml
index e78c96343c..d84979d495 100644
--- a/testsuite/tests/translprim/array_spec.ml
+++ b/testsuite/tests/translprim/array_spec.ml
@@ -1,3 +1,15 @@
+(* TEST
+ * setup-ocamlc.byte-build-env
+ ** ocamlc.byte
+ flags = "-dlambda -dno-unique-ids"
+ *** flat-float-array
+ **** check-ocamlc.byte-output
+ compiler_reference = "${test_source_directory}/array_spec.compilers.reference.flat"
+ *** no-flat-float-array
+ **** check-ocamlc.byte-output
+ compiler_reference = "${test_source_directory}/array_spec.compilers.reference.no-flat"
+*)
+
external len : 'a array -> int = "%array_length"
external safe_get : 'a array -> int -> 'a = "%array_safe_get"
external unsafe_get : 'a array -> int -> 'a = "%array_unsafe_get"