c++: Add testcase for now fixed issue [PR101887]

Message ID 01020192e70e8d1c-c8ace6b3-44d4-41b5-93a0-24250513a814-000000@eu-west-1.amazonses.com
State Committed
Commit fe919da3c395d2214ffc81ad4f51f8344ad5a5c1
Headers
Series c++: Add testcase for now fixed issue [PR101887] |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gcc_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 success Test passed
linaro-tcwg-bot/tcwg_gcc_check--master-arm fail Patch failed to apply

Commit Message

Simon Martin Nov. 1, 2024, 9:29 a.m. UTC
  The testcase in PR101887 has been working since the fix for PR104846,
via r12-7599-gac8310dd122172.

This patch simply adds the case to the testsuite.

Successfully tested on x86_64-pc-linux-gnu.

	PR c++/101887

gcc/testsuite/ChangeLog:

	* g++.dg/init/delete5.C: Add testcase from PR c++/101887.

---
 gcc/testsuite/g++.dg/init/delete5.C | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

Jason Merrill Nov. 1, 2024, 3:26 p.m. UTC | #1
On 11/1/24 5:29 AM, Simon Martin wrote:
> The testcase in PR101887 has been working since the fix for PR104846,
> via r12-7599-gac8310dd122172.
> 
> This patch simply adds the case to the testsuite.

OK.

> Successfully tested on x86_64-pc-linux-gnu.
> 
> 	PR c++/101887
> 
> gcc/testsuite/ChangeLog:
> 
> 	* g++.dg/init/delete5.C: Add testcase from PR c++/101887.
> 
> ---
>   gcc/testsuite/g++.dg/init/delete5.C | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/gcc/testsuite/g++.dg/init/delete5.C b/gcc/testsuite/g++.dg/init/delete5.C
> index 3555f43bbb0..3fff93d846e 100644
> --- a/gcc/testsuite/g++.dg/init/delete5.C
> +++ b/gcc/testsuite/g++.dg/init/delete5.C
> @@ -1,8 +1,9 @@
>   // PR c++/104846
> +// PR c++/101887
>   // { dg-do compile { target c++14 } }
>   
>   struct S {
>     auto operator delete (void *) {} // { dg-error ".operator delete. must return type .void'" }
> +  auto operator delete (void*, __SIZE_TYPE__); // { dg-error ".operator delete. must return type .void'" }
>     auto operator delete[] (void *) {} // { dg-error ".operator delete. must return type .void'" }
>   };
> -
  

Patch

diff --git a/gcc/testsuite/g++.dg/init/delete5.C b/gcc/testsuite/g++.dg/init/delete5.C
index 3555f43bbb0..3fff93d846e 100644
--- a/gcc/testsuite/g++.dg/init/delete5.C
+++ b/gcc/testsuite/g++.dg/init/delete5.C
@@ -1,8 +1,9 @@ 
 // PR c++/104846
+// PR c++/101887
 // { dg-do compile { target c++14 } }
 
 struct S {
   auto operator delete (void *) {} // { dg-error ".operator delete. must return type .void'" }
+  auto operator delete (void*, __SIZE_TYPE__); // { dg-error ".operator delete. must return type .void'" }
   auto operator delete[] (void *) {} // { dg-error ".operator delete. must return type .void'" }
 };
-