scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 87128815ed757d2949707fb99cf3ba421f5986dc
parent 40a039807d5241750fe54d5feac09ffda31f5e4f
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 30 Mar 2026 12:06:36 -0700

tests/cc: Use explicit return type in functions

Implicit return types are not standard in C99 and later, and they
are already tested in 0026-implicitret.c.

Diffstat:
Mtests/cc/execute/0121-localinit.c | 2+-
Mtests/cc/execute/0143-int_const.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/cc/execute/0121-localinit.c b/tests/cc/execute/0121-localinit.c @@ -1,4 +1,4 @@ -main() +int main() { int x[] = { 1, 0 }; return x[1]; diff --git a/tests/cc/execute/0143-int_const.c b/tests/cc/execute/0143-int_const.c @@ -1,4 +1,4 @@ -main(void) +int main(void) { int i; unsigned u;