]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.c-torture/execute/931004-13.c: Fix declaration of main
authorFlorian Weimer <fweimer@redhat.com>
Thu, 16 Nov 2023 11:09:19 +0000 (12:09 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 16 Nov 2023 11:48:11 +0000 (12:48 +0100)
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

index 8b79679087c0dd876574783693cd48d463c844d0..e8c0c81076cebdb9bf81f5a81bafbc9c9b547f64 100644 (file)
@@ -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;