projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
063bb8e
)
fix testsuite/g++.dg/init/new26.C for C++-14 and later
author
Jerome Lambourg
<lambourg@adacore.com>
Fri, 1 Jan 2021 00:37:48 +0000
(21:37 -0300)
committer
Alexandre Oliva
<oliva@gnu.org>
Fri, 1 Jan 2021 05:12:06 +0000
(
02:12
-0300)
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.
gcc/testsuite/g++.dg/init/new26.C
patch
|
blob
|
history
diff --git
a/gcc/testsuite/g++.dg/init/new26.C
b/gcc/testsuite/g++.dg/init/new26.C
index 541de3058e10a09057c4effd5004efbca780d673..75bdcb15074d59df40da14d403814c360dad4b84 100644
(file)
--- 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;