diff options
author | David Terei <davidterei@gmail.com> | 2013-01-22 23:02:36 -0800 |
---|---|---|
committer | David Terei <davidterei@gmail.com> | 2013-01-22 23:02:36 -0800 |
commit | 9b2d9d81ed5a7d26e00ee272d15147f111a87b0c (patch) | |
tree | 9f0ad00c35536531e94ab702c0db49223efe2098 /testsuite/tests/llvm | |
parent | 531a441b979aa78b511afc23b85e17372663e674 (diff) | |
download | haskell-9b2d9d81ed5a7d26e00ee272d15147f111a87b0c.tar.gz |
Add test for T7575.
Diffstat (limited to 'testsuite/tests/llvm')
-rw-r--r-- | testsuite/tests/llvm/should_compile/T7575.hs | 16 | ||||
-rw-r--r-- | testsuite/tests/llvm/should_compile/all.T | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/tests/llvm/should_compile/T7575.hs b/testsuite/tests/llvm/should_compile/T7575.hs new file mode 100644 index 0000000000..78b0bd29a8 --- /dev/null +++ b/testsuite/tests/llvm/should_compile/T7575.hs @@ -0,0 +1,16 @@ +{-# LANGUAGE NoImplicitPrelude #-} +{-# LANGUAGE MagicHash, UnliftedFFITypes #-} +module T7575 where + +import GHC.Prim +import GHC.Word +import GHC.Types + +foreign import ccall unsafe "hs_eqWord64" dummy_eqWord64# :: Word64# -> Word64# -> Bool + +check :: Word64 -> Word64 -> Bool +check (W64# x#) (W64# y#) = dummy_eqWord64# x# y# + +check2 :: Word64 -> Bool +check2 x = check x 0 + diff --git a/testsuite/tests/llvm/should_compile/all.T b/testsuite/tests/llvm/should_compile/all.T index d0ce873a39..b2d09ce00b 100644 --- a/testsuite/tests/llvm/should_compile/all.T +++ b/testsuite/tests/llvm/should_compile/all.T @@ -11,3 +11,4 @@ test('5486', normal, compile, ['']) test('5681', normal, compile, ['']) test('6158', [reqlib('vector'), reqlib('primitive')], compile, ['-package vector -package primitive']) test('T7571', cmm_src, compile, ['']) +test('T7575', normal, compile, ['']) |