summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorCheng Shao <terrorjack@type.dance>2023-01-30 19:53:02 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-01-31 07:55:41 -0500
commit7716cbe64862932fd69348b2594a14f2092e1c02 (patch)
tree00e3c0d84b9c2a87b01b8a53957c25bd547356b3 /testsuite
parent085a6db690ababae5d7b6a73f13a1f2f24aa9417 (diff)
downloadhaskell-7716cbe64862932fd69348b2594a14f2092e1c02.tar.gz
testsuite: use tgamma for cg007
gamma is a glibc-only deprecated function, use tgamma instead. It's required for fixing cg007 when testing the wasm unregisterised codegen.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/codeGen/should_compile/cg007.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/testsuite/tests/codeGen/should_compile/cg007.hs b/testsuite/tests/codeGen/should_compile/cg007.hs
index bfeb5d677f..2897cd07fa 100644
--- a/testsuite/tests/codeGen/should_compile/cg007.hs
+++ b/testsuite/tests/codeGen/should_compile/cg007.hs
@@ -21,6 +21,5 @@ In file included from /rts/include/Stg.h:207,
error: for each function it appears in.)
-}
-foreign import ccall unsafe "math.h gamma"
- gamma :: CDouble -> CDouble
-
+foreign import ccall unsafe "math.h tgamma"
+ tgamma :: CDouble -> CDouble