[gcc r11-6400] fix testsuite/g++.dg/init/new26.C for C++-14 and later
Alexandre Oliva
aoliva@gcc.gnu.org
Fri Jan 1 05:16:11 GMT 2021
https://gcc.gnu.org/g:a210519cdde186f28ce9c906eb855c6b635ab25a
commit r11-6400-ga210519cdde186f28ce9c906eb855c6b635ab25a
Author: Jerome Lambourg <lambourg@adacore.com>
Date: Thu Dec 31 21:37:48 2020 -0300
fix testsuite/g++.dg/init/new26.C for C++-14 and later
This test fails during the execution on VxWorks 7 when using
C++-14 and C++-17.
for gcc/testsuite/ChangeLog
* g++.dg/init/new26.C: Fix overriding of the delete operator
for c++14 profile.
Diff:
---
gcc/testsuite/g++.dg/init/new26.C | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/g++.dg/init/new26.C b/gcc/testsuite/g++.dg/init/new26.C
index 541de3058e1..75bdcb15074 100644
--- a/gcc/testsuite/g++.dg/init/new26.C
+++ b/gcc/testsuite/g++.dg/init/new26.C
@@ -16,8 +16,12 @@ inline void *operator new(__SIZE_TYPE__)
return p;
}
+// C++11 and earlier
inline void operator delete (void*) {}
+// C++14 profile
+inline void operator delete (void*, __SIZE_TYPE__) {}
+
int * __attribute__((noinline)) doit(int n)
{
float *q;
More information about the Gcc-cvs
mailing list