public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5528] gcc.c-torture/execute/931004-13.c: Fix declaration of main
@ 2023-11-16 11:48 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2023-11-16 11:48 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ec35fdc9576d3907973667b57932b21514ee5062
commit r14-5528-gec35fdc9576d3907973667b57932b21514ee5062
Author: Florian Weimer <fweimer@redhat.com>
Date: Thu Nov 16 12:09:19 2023 +0100
gcc.c-torture/execute/931004-13.c: Fix declaration of main
gcc/testsuite/
* gcc.c-torture/execute/931004-13.c (main): Fix mistakenly swapped
int/void types.
Diff:
---
gcc/testsuite/gcc.c-torture/execute/931004-13.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.c-torture/execute/931004-13.c b/gcc/testsuite/gcc.c-torture/execute/931004-13.c
index 8b79679087c..e8c0c81076c 100644
--- a/gcc/testsuite/gcc.c-torture/execute/931004-13.c
+++ b/gcc/testsuite/gcc.c-torture/execute/931004-13.c
@@ -43,8 +43,8 @@ f (int n, struct tiny x, struct tiny y, struct tiny z, long l)
abort ();
}
-void
-main (int)
+int
+main (void)
{
struct tiny x[3];
x[0].c = 10;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-16 11:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-16 11:48 [gcc r14-5528] gcc.c-torture/execute/931004-13.c: Fix declaration of main Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).