]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.c-torture/execute/builtins/pr93262-chk.c: Remove return statement
authorFlorian Weimer <fweimer@redhat.com>
Mon, 23 Oct 2023 07:23:05 +0000 (09:23 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 23 Oct 2023 07:23:05 +0000 (09:23 +0200)
The main_test function returns void, so return with an expression
is a constraint violation.  The test case still fails with this
change applied before the fix for PR 93262 in r14-4813.

gcc/testsuite/

* gcc.c-torture/execute/builtins/pr93262-chk.c (main_test):
Remove unnecessary return statement.

gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c

index 66d86b44b58a633c14f41eb4f39a91f542429623..e55868623e9ec98aab18b7f5b8170537e6734f36 100644 (file)
@@ -51,5 +51,4 @@ main_test (void)
     }
   if (chk_calls != 2)
     abort ();
-  return 0;
 }