summaryrefslogtreecommitdiff
path: root/testsuite/tests/tool-ocamlc-compat32/compat32.ml
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/tool-ocamlc-compat32/compat32.ml')
-rw-r--r--testsuite/tests/tool-ocamlc-compat32/compat32.ml29
1 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/tests/tool-ocamlc-compat32/compat32.ml b/testsuite/tests/tool-ocamlc-compat32/compat32.ml
new file mode 100644
index 0000000000..8b09d8ab66
--- /dev/null
+++ b/testsuite/tests/tool-ocamlc-compat32/compat32.ml
@@ -0,0 +1,29 @@
+(* TEST
+ * arch64
+ ** setup-ocamlc.byte-build-env
+ *** ocamlc.byte
+ compile_only = "true"
+ flags = "-compat-32"
+ ocamlc_byte_exit_status = "2"
+ **** ocamlc.byte
+ ocamlc_byte_exit_status = "0"
+ flags = ""
+ ***** ocamlc.byte
+ compile_only = "false"
+ all_modules = "compat32.cmo"
+ flags = "-compat-32 -a"
+ program = "compat32.cma"
+ ocamlc_byte_exit_status = "2"
+ ****** ocamlc.byte
+ flags = "-a"
+ program = "compat32.cma"
+ ocamlc_byte_exit_status = "0"
+ ******* ocamlc.byte
+ all_modules = "compat32.cma"
+ flags = "-compat-32 -linkall"
+ program = "compat32.byte"
+ ocamlc_byte_exit_status = "2"
+ ******** check-ocamlc.byte-output
+*)
+
+let a = 0xffffffffffff