diff options
author | Cheng Shao <terrorjack@type.dance> | 2023-01-30 19:53:02 +0000 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2023-02-01 13:18:47 +0000 |
commit | 343c856fda737e724383b7d72ebdc89c3925e9c3 (patch) | |
tree | 4cb6cc848f4c3a8bfc8ba04c9274ef169b0c06a3 | |
parent | 8f29bdae73dd60a8219bf574a33237d08888cd11 (diff) | |
download | haskell-343c856fda737e724383b7d72ebdc89c3925e9c3.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.
(cherry picked from commit 7716cbe64862932fd69348b2594a14f2092e1c02)
-rw-r--r-- | testsuite/tests/codeGen/should_compile/cg007.hs | 5 |
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 |