]> granicus.if.org Git - clang/commit
Failing test highlighting no poisoning if dtor undeclared.
authorNaomi Musgrave <nmusgrave@google.com>
Tue, 8 Sep 2015 16:38:17 +0000 (16:38 +0000)
committerNaomi Musgrave <nmusgrave@google.com>
Tue, 8 Sep 2015 16:38:17 +0000 (16:38 +0000)
commit4ba745e32ecd4fafb2425fb475a0076820fbada9
treee2bf9c9a2c0ff6759d3b616819afe9f240b98d1f
parent90ea10e5ea2f9907adea9f90667c34cc39820e61
Failing test highlighting no poisoning if dtor undeclared.

Summary:
If class or struct has not declared a destructor,
no destructor is emitted, and members are not poisoned
after destruction. This case highlights bug in current
implementation of use-after-dtor poisoning (detailed
in https://github.com/google/sanitizers/issues/596).

Reviewers: eugenis, kcc

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D12616

Only check simplest object for existence of sanitizing callback.

Rename test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247025 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGenCXX/sanitize-dtor-trivial.cpp [new file with mode: 0644]