summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2015-07-27 18:44:10 +0000
committerDamien Doligez <damien.doligez-inria.fr>2015-07-27 18:44:10 +0000
commitdebaf6edb2ebc6e7546a722917ff8e630965831d (patch)
tree27566070c5ea7ea2b24771f5f400b04eeec82064
parent66e958ef0f50bb2f9d0306a105cf0378f074b0ee (diff)
downloadocaml-debaf6edb2ebc6e7546a722917ff8e630965831d.tar.gz
fix regression test for PR#6938 for 32-bit machines
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16283 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--testsuite/tests/lib-printf/pr6938.ml48
-rw-r--r--testsuite/tests/lib-printf/pr6938.reference48
2 files changed, 48 insertions, 48 deletions
diff --git a/testsuite/tests/lib-printf/pr6938.ml b/testsuite/tests/lib-printf/pr6938.ml
index 8e72d9b007..b081b4ce44 100644
--- a/testsuite/tests/lib-printf/pr6938.ml
+++ b/testsuite/tests/lib-printf/pr6938.ml
@@ -1,42 +1,42 @@
(* these are not valid under -strict-formats, but we test them here
for backward-compatibility *)
-Printf.printf "%047.27d\n" 1736201459;;
-Printf.printf "%047.27ld\n" 1736201459l;;
-Printf.printf "%047.27Ld\n" 1736201459L;;
-Printf.printf "%047.27nd\n" 1736201459n;;
+Printf.printf "%047.27d\n" 1036201459;;
+Printf.printf "%047.27ld\n" 1036201459l;;
+Printf.printf "%047.27Ld\n" 1036201459L;;
+Printf.printf "%047.27nd\n" 1036201459n;;
print_newline ();;
-Printf.printf "%047.27i\n" 1736201459;;
-Printf.printf "%047.27li\n" 1736201459l;;
-Printf.printf "%047.27Li\n" 1736201459L;;
-Printf.printf "%047.27ni\n" 1736201459n;;
+Printf.printf "%047.27i\n" 1036201459;;
+Printf.printf "%047.27li\n" 1036201459l;;
+Printf.printf "%047.27Li\n" 1036201459L;;
+Printf.printf "%047.27ni\n" 1036201459n;;
print_newline ();;
-Printf.printf "%047.27u\n" 1736201459;;
-Printf.printf "%047.27lu\n" 1736201459l;;
-Printf.printf "%047.27Lu\n" 1736201459L;;
-Printf.printf "%047.27nu\n" 1736201459n;;
+Printf.printf "%047.27u\n" 1036201459;;
+Printf.printf "%047.27lu\n" 1036201459l;;
+Printf.printf "%047.27Lu\n" 1036201459L;;
+Printf.printf "%047.27nu\n" 1036201459n;;
print_newline ();;
-Printf.printf "%047.27x\n" 1736201459;;
-Printf.printf "%047.27lx\n" 1736201459l;;
-Printf.printf "%047.27Lx\n" 1736201459L;;
-Printf.printf "%047.27nx\n" 1736201459n;;
+Printf.printf "%047.27x\n" 1036201459;;
+Printf.printf "%047.27lx\n" 1036201459l;;
+Printf.printf "%047.27Lx\n" 1036201459L;;
+Printf.printf "%047.27nx\n" 1036201459n;;
print_newline ();;
-Printf.printf "%047.27X\n" 1736201459;;
-Printf.printf "%047.27lX\n" 1736201459l;;
-Printf.printf "%047.27LX\n" 1736201459L;;
-Printf.printf "%047.27nX\n" 1736201459n;;
+Printf.printf "%047.27X\n" 1036201459;;
+Printf.printf "%047.27lX\n" 1036201459l;;
+Printf.printf "%047.27LX\n" 1036201459L;;
+Printf.printf "%047.27nX\n" 1036201459n;;
print_newline ();;
-Printf.printf "%047.27o\n" 1736201459;;
-Printf.printf "%047.27lo\n" 1736201459l;;
-Printf.printf "%047.27Lo\n" 1736201459L;;
-Printf.printf "%047.27no\n" 1736201459n;;
+Printf.printf "%047.27o\n" 1036201459;;
+Printf.printf "%047.27lo\n" 1036201459l;;
+Printf.printf "%047.27Lo\n" 1036201459L;;
+Printf.printf "%047.27no\n" 1036201459n;;
diff --git a/testsuite/tests/lib-printf/pr6938.reference b/testsuite/tests/lib-printf/pr6938.reference
index ebd5057633..3e5e220d95 100644
--- a/testsuite/tests/lib-printf/pr6938.reference
+++ b/testsuite/tests/lib-printf/pr6938.reference
@@ -1,31 +1,31 @@
- 000000000000000001736201459
- 000000000000000001736201459
- 000000000000000001736201459
- 000000000000000001736201459
+ 000000000000000001036201459
+ 000000000000000001036201459
+ 000000000000000001036201459
+ 000000000000000001036201459
- 000000000000000001736201459
- 000000000000000001736201459
- 000000000000000001736201459
- 000000000000000001736201459
+ 000000000000000001036201459
+ 000000000000000001036201459
+ 000000000000000001036201459
+ 000000000000000001036201459
- 000000000000000001736201459
- 000000000000000001736201459
- 000000000000000001736201459
- 000000000000000001736201459
+ 000000000000000001036201459
+ 000000000000000001036201459
+ 000000000000000001036201459
+ 000000000000000001036201459
- 0000000000000000000677c54f3
- 0000000000000000000677c54f3
- 0000000000000000000677c54f3
- 0000000000000000000677c54f3
+ 00000000000000000003dc32df3
+ 00000000000000000003dc32df3
+ 00000000000000000003dc32df3
+ 00000000000000000003dc32df3
- 0000000000000000000677C54F3
- 0000000000000000000677C54F3
- 0000000000000000000677C54F3
- 0000000000000000000677C54F3
+ 00000000000000000003DC32DF3
+ 00000000000000000003DC32DF3
+ 00000000000000000003DC32DF3
+ 00000000000000000003DC32DF3
- 000000000000000014737052363
- 000000000000000014737052363
- 000000000000000014737052363
- 000000000000000014737052363
+ 000000000000000007560626763
+ 000000000000000007560626763
+ 000000000000000007560626763
+ 000000000000000007560626763
All tests succeeded.