diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/codeGen/should_compile/T15570.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/codeGen/should_compile/all.T | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/codeGen/should_compile/T15570.hs b/testsuite/tests/codeGen/should_compile/T15570.hs new file mode 100644 index 0000000000..34164cf896 --- /dev/null +++ b/testsuite/tests/codeGen/should_compile/T15570.hs @@ -0,0 +1,5 @@ +{-# LANGUAGE MagicHash #-} +import GHC.Exts + +main :: IO () +main = print $ C# (indexCharOffAddr# "foo"# -9223372036854775808#) diff --git a/testsuite/tests/codeGen/should_compile/all.T b/testsuite/tests/codeGen/should_compile/all.T index f30123f07d..73c80e786e 100644 --- a/testsuite/tests/codeGen/should_compile/all.T +++ b/testsuite/tests/codeGen/should_compile/all.T @@ -91,3 +91,8 @@ test('T17648', normal, makefile_test, []) test('T17904', normal, compile, ['-O']) test('T18227A', normal, compile, ['']) test('T18227B', normal, compile, ['']) +test('T15570', + when(unregisterised(), skip), + compile, ['-Wno-overflowed-literals']) + # skipped with CmmToC because it generates a warning: + # warning: integer constant is so large that it is unsigned |