mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 05:26:34 +01:00
tests: Fix gremlin.scm for GCC 14
* tests/gremlin.scm: Include stdio.h before using puts since GCC 14 no longer allows implicit declarations. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
ab80403eea
commit
9793403bc0
1 changed files with 2 additions and 0 deletions
|
@ -136,6 +136,7 @@ (define ground-truth
|
|||
(with-directory-excursion directory
|
||||
(call-with-output-file "t.c"
|
||||
(lambda (port)
|
||||
(display "#include <stdio.h>\n" port)
|
||||
(display "int main () { puts(\"hello\"); }" port)))
|
||||
(invoke c-compiler "t.c"
|
||||
"-Wl,--enable-new-dtags" "-Wl,-rpath=/foo" "-Wl,-rpath=/bar")
|
||||
|
@ -164,6 +165,7 @@ (define ground-truth
|
|||
(with-directory-excursion directory
|
||||
(call-with-output-file "t.c"
|
||||
(lambda (port)
|
||||
(display "#include <stdio.h>\n" port)
|
||||
(display "int main () { puts(\"hello\"); }" port)))
|
||||
|
||||
(invoke c-compiler "t.c"
|
||||
|
|
Loading…
Reference in a new issue