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:
Ting-Wei Lan 2024-11-10 11:31:57 +08:00 committed by Ludovic Courtès
parent ab80403eea
commit 9793403bc0
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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"