mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
Modify cxx17_aligned_new testcase to accommdate clang.
Explicitly use ordinary scalar delete and update the expecteds. Otherwise g++ uses sized scalar delete whilse clang uses ordinary scalar delete which causes a diff.
This commit is contained in:
parent
b030c481dc
commit
f9ee4517a0
@ -39,7 +39,10 @@ int main() {
|
||||
// so new/aligned delete is not a mismatch
|
||||
operator delete(oClass, std::align_val_t(64U));
|
||||
oClass = new (std::nothrow) OrdinaryClass;
|
||||
delete oClass;
|
||||
//delete oClass;
|
||||
// changed the above delete because GCC generates
|
||||
// a sized delete (???) whilst clang generates an ordinary delete
|
||||
operator delete(oClass);
|
||||
oClass = new OrdinaryClass[5];
|
||||
delete [] oClass;
|
||||
oClass = new (std::nothrow) OrdinaryClass[5];
|
||||
|
||||
@ -14,7 +14,7 @@ _ZdaPvSt11align_val_tRKSt9nothrow_t(0x........)
|
||||
_Znwm(4) = 0x........
|
||||
_ZdlPvSt11align_val_t(0x........)
|
||||
_ZnwmRKSt9nothrow_t(4) = 0x........
|
||||
_ZdlPvm(0x........)
|
||||
_ZdlPv(0x........)
|
||||
_Znam(20) = 0x........
|
||||
_ZdaPv(0x........)
|
||||
_ZnamRKSt9nothrow_t(20) = 0x........
|
||||
|
||||
@ -14,7 +14,7 @@ _ZdaPvSt11align_val_tRKSt9nothrow_t(0x........)
|
||||
_Znwj(4) = 0x........
|
||||
_ZdlPvSt11align_val_t(0x........)
|
||||
_ZnwjRKSt9nothrow_t(4) = 0x........
|
||||
_ZdlPvj(0x........)
|
||||
_ZdlPv(0x........)
|
||||
_Znaj(20) = 0x........
|
||||
_ZdaPv(0x........)
|
||||
_ZnajRKSt9nothrow_t(20) = 0x........
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user