]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[committed] Fix comp-goto-1.c on 16 bit targets
authorJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:32:22 +0000 (22:32 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:32:22 +0000 (22:32 -0700)
I don't remember what port triggered this, but it's obviously that
comp-goto-1.c needs to be fixed.

Basically the test has two implementations.  One is just a dummy with no return
value on main() triggering the new errors.

gcc/testsuite
* gcc.c-torture/execute/comp-goto-1.c: Fix return value of main for
16 bit targets.

gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c

index 4379fe70e9ceb5270effe4f5d6d0658b7558c17a..6be63c097ac8d9e8e32ed654056f7db7f63c0758 100644 (file)
@@ -163,5 +163,5 @@ main ()
   exit (0);
 }
 #else
-main(){ exit (0); }
+int main(){ exit (0); }
 #endif