diff --git a/ghc/tests/codeGen/should_run/cg029.hs b/ghc/tests/codeGen/should_run/cg029.hs index 9748af459b87a68632b867a5aaa23bbb1a627f29..faa9f2f35a33150ab1582a41620669074ed90c21 100644 --- a/ghc/tests/codeGen/should_run/cg029.hs +++ b/ghc/tests/codeGen/should_run/cg029.hs @@ -3,9 +3,10 @@ module Main(main) where -- In 0.19, we lost the ability to do ccalls with more than 6 arguments -- on the Sparc. Just to make sure it never happens again... +import CString main = - _ccall_ printf "Testing %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n" + _ccall_ printf (packString "Testing %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n") (01::Int) (02::Int) (03::Int) (04::Int) (05::Int) (06::Int) (07::Int) (08::Int) (11::Int) (12::Int) (13::Int) (14::Int) (15::Int) (16::Int) (17::Int) (18::Int) (21::Int) (22::Int) (23::Int) (24::Int) (25::Int) (26::Int) (27::Int) (28::Int) diff --git a/ghc/tests/codeGen/should_run/cg030.hs b/ghc/tests/codeGen/should_run/cg030.hs index 95947ce92b124430220baa66a9ba1b1ef53663af..62ca02543d1ad4cdf90c182ca5d6297bec4f787f 100644 --- a/ghc/tests/codeGen/should_run/cg030.hs +++ b/ghc/tests/codeGen/should_run/cg030.hs @@ -1,5 +1,6 @@ module PrelMain(mainIO) where import ST +import CString -mainIO = _ccall_ puts "123\n" >> return () +mainIO = _ccall_ puts (packString "123\n") >> return ()