diff options
-rw-r--r-- | compiler/GHC/Types/ForeignCall.hs | 3 | ||||
-rw-r--r-- | testsuite/tests/numeric/should_compile/all.T | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/compiler/GHC/Types/ForeignCall.hs b/compiler/GHC/Types/ForeignCall.hs index 0951016524..e51f8bd31b 100644 --- a/compiler/GHC/Types/ForeignCall.hs +++ b/compiler/GHC/Types/ForeignCall.hs @@ -213,9 +213,10 @@ instance Outputable CCallSpec where gc_suf | playSafe safety = text "_GC" | otherwise = empty - ppr_fun (StaticTarget st _fn mPkgId isFun) + ppr_fun (StaticTarget st fn mPkgId isFun) = text (if isFun then "__pkg_ccall" else "__pkg_ccall_value") + <> parens (ppr fn) <> gc_suf <+> (case mPkgId of Nothing -> empty diff --git a/testsuite/tests/numeric/should_compile/all.T b/testsuite/tests/numeric/should_compile/all.T index 7c39541e5b..9ed98aa21e 100644 --- a/testsuite/tests/numeric/should_compile/all.T +++ b/testsuite/tests/numeric/should_compile/all.T @@ -8,4 +8,4 @@ test('T7881', normal, compile, ['']) # desugaring, so we don't get the warning we expect. test('T8542', omit_ways(['hpc']), compile, ['']) test('T10929', normal, compile, ['']) -test('T16402', [ grep_errmsg(r'and') ], compile, ['']) +test('T16402', [ grep_errmsg(r'and#') ], compile, ['']) |