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
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
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'" }
> };
> -
@@ -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'" }
};
-