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.
This commit is contained in:
parent
063bb8edbe
commit
a210519cdd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user