[committed] Fix comp-goto-1.c on 16 bit targets
Checks
Commit Message
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.
Pushed to the trunk.
Jeff
commit d5c823b033bb6409bbcd115b318093126f5a674f
Author: Jeff Law <jlaw@ventanamicro.com>
Date: Sat Dec 2 22:32:22 2023 -0700
[committed] Fix comp-goto-1.c on 16 bit targets
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.
@@ -163,5 +163,5 @@ main ()
exit (0);
}
#else
-main(){ exit (0); }
+int main(){ exit (0); }
#endif