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:
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;