Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
obsidiansystems
GHC
Commits
422107ec
Commit
422107ec
authored
Oct 26, 2015
by
Ben Gamari
Committed by
Ben Gamari
Dec 27, 2015
Browse files
T10518: Ensure literal has 64-bit type
Otherwise we get a C-- lint error due to mismatched RHS and variable types.
parent
8bf2d8f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/codeGen/should_compile/T10518.cmm
View file @
422107ec
foo
()
{
bits64
a
;
a
=
0
x10000000000000000
;
// overflows 64 bits
a
=
(
0
x10000000000000000
::
bits64
)
;
// overflows 64 bits
return
(
a
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment