[COMMITTED] gcc.c-torture/execute/931004-13.c: Fix declaration of main

Message ID 87v8a1rdwy.fsf@oldenburg.str.redhat.com
State Unresolved
Headers
Series [COMMITTED] gcc.c-torture/execute/931004-13.c: Fix declaration of main |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Florian Weimer Nov. 16, 2023, 2:06 p.m. UTC
  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(-)


base-commit: 5f1105612b592650566a54846dd5f9ccdfed01a9
  

Patch

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;