gcc.c-torture/execute/builtins/pr93262-chk.c: Remove return statement

Message ID 874jijje0h.fsf@oldenburg.str.redhat.com
State Accepted
Headers
Series gcc.c-torture/execute/builtins/pr93262-chk.c: Remove return statement |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Florian Weimer Oct. 22, 2023, 7:46 a.m. UTC
  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 | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Jeff Law Oct. 22, 2023, 1:44 p.m. UTC | #1
On 10/22/23 01:46, Florian Weimer wrote:
> 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.
OK
jeff
  

Patch

diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c b/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c
index 66d86b44b58..e55868623e9 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c
@@ -51,5 +51,4 @@  main_test (void)
     }
   if (chk_calls != 2)
     abort ();
-  return 0;
 }