public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH COMMITTED] gcc.c-torture/execute/931004-13.c: Fix declaration of main
@ 2023-11-16 14:06 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2023-11-16 14:06 UTC (permalink / raw)
  To: gcc-patches

gcc/testsuite/

	* gcc.c-torture/execute/931004-13.c (main): Fix mistakenly swapped
	int/void types.

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

base-commit: 5f1105612b592650566a54846dd5f9ccdfed01a9


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-16 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-16 14:06 [PATCH COMMITTED] 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).