testsuite: Fix tests expecting 64-bit word size
authorBen Gamari <ben@smart-cactus.org>
Fri, 7 Dec 2018 17:46:02 +0000 (12:46 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sat, 8 Dec 2018 03:52:25 +0000 (22:52 -0500)
These were added in 75a8349b2a7d0142d3d687837caf5a95bbb4368d.

testsuite/tests/warnings/should_compile/Overflow.stderr-ws-32 [new file with mode: 0644]
testsuite/tests/warnings/should_compile/Overflow.stderr-ws-64 [moved from testsuite/tests/warnings/should_compile/Overflow.stderr with 100% similarity]
testsuite/tests/warnings/should_compile/T10930.stderr-ws-32 [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T10930.stderr-ws-64 [moved from testsuite/tests/warnings/should_compile/T10930.stderr with 100% similarity]
testsuite/tests/warnings/should_compile/T13256.stderr-ws-32 [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T13256.stderr-ws-64 [moved from testsuite/tests/warnings/should_compile/T13256.stderr with 100% similarity]

diff --git a/testsuite/tests/warnings/should_compile/Overflow.stderr-ws-32 b/testsuite/tests/warnings/should_compile/Overflow.stderr-ws-32
new file mode 100644 (file)
index 0000000..0868f26
--- /dev/null
@@ -0,0 +1,18 @@
+
+Overflow.hs:8:15: warning: [-Woverflowed-literals (in -Wdefault)]
+    Literal 10000000000000000000000000000000 is out of the Int# range -2147483648..2147483647
+
+Overflow.hs:13:1: warning: [-Woverflowed-literals (in -Wdefault)]
+    Literal 100000000000000000000000000 is out of the Int# range -2147483648..2147483647
+
+Overflow.hs:18:5: warning: [-Woverflowed-literals (in -Wdefault)]
+    Literal 1000000000000000000000000000000 is out of the Int range -2147483648..2147483647
+
+Overflow.hs:22:1: warning: [-Woverflowed-literals (in -Wdefault)]
+    Literal 100000000000000000000000000000000 is out of the Int range -2147483648..2147483647
+
+Overflow.hs:27:6: warning: [-Woverflowed-literals (in -Wdefault)]
+    Literal -1 is out of the Word range 0..4294967295
+
+Overflow.hs:31:1: warning: [-Woverflowed-literals (in -Wdefault)]
+    Literal -1 is out of the Word range 0..4294967295
diff --git a/testsuite/tests/warnings/should_compile/T10930.stderr-ws-32 b/testsuite/tests/warnings/should_compile/T10930.stderr-ws-32
new file mode 100644 (file)
index 0000000..8fcd1a3
--- /dev/null
@@ -0,0 +1,12 @@
+
+T10930.hs:6:5: warning: [-Woverflowed-literals (in -Wdefault)]
+    Literal -123 is out of the Word range 0..4294967295
+
+T10930.hs:7:5: warning: [-Woverflowed-literals (in -Wdefault)]
+    Literal -123 is negative but Natural only supports positive numbers
+
+T10930.hs:9:5: warning: [-Wempty-enumerations (in -Wdefault)]
+    Enumeration is empty
+
+T10930.hs:10:5: warning: [-Wempty-enumerations (in -Wdefault)]
+    Enumeration is empty
diff --git a/testsuite/tests/warnings/should_compile/T13256.stderr-ws-32 b/testsuite/tests/warnings/should_compile/T13256.stderr-ws-32
new file mode 100644 (file)
index 0000000..6309a97
--- /dev/null
@@ -0,0 +1,3 @@
+
+T13256.hs:4:12: warning: [-Woverflowed-literals (in -Wdefault)]
+    Literal 100000000000000000000000000000000 is out of the Int range -2147483648..2147483647