summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <bgamari@smart-cactus.org>2015-10-26 09:12:13 +0000
committerBen Gamari <ben@smart-cactus.org>2015-10-26 10:36:25 +0100
commit3b718b7abb544aa788779dce36e96b0bfae03ebf (patch)
tree7c681926461fd017ce5230193009b40964101a86
parent18f1e265619c04b034a10f251c9f1262be49bb38 (diff)
downloadhaskell-3b718b7abb544aa788779dce36e96b0bfae03ebf.tar.gz
T10518: Ensure literal has 64-bit type
Otherwise we get a C-- lint error due to mismatched RHS and variable types.
-rw-r--r--testsuite/tests/codeGen/should_compile/T10518.cmm2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/codeGen/should_compile/T10518.cmm b/testsuite/tests/codeGen/should_compile/T10518.cmm
index 966cd4ab53..cea46398bf 100644
--- a/testsuite/tests/codeGen/should_compile/T10518.cmm
+++ b/testsuite/tests/codeGen/should_compile/T10518.cmm
@@ -1,5 +1,5 @@
foo() {
bits64 a;
- a = 0x10000000000000000; // overflows 64 bits
+ a = (0x10000000000000000 :: bits64); // overflows 64 bits
return (a);
}