From 7716cbe64862932fd69348b2594a14f2092e1c02 Mon Sep 17 00:00:00 2001 From: Cheng Shao Date: Mon, 30 Jan 2023 19:53:02 +0000 Subject: 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. --- testsuite/tests/codeGen/should_compile/cg007.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'testsuite') 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 -- cgit v1.2.1