[PATCH] D12616: Failing test highlighting no poisoning if dtor undeclared.

Naomi Musgrave via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 8 08:11:51 PDT 2015


nmusgrave updated this revision to Diff 34220.
nmusgrave marked an inline comment as done.
nmusgrave added a comment.

- Rename test.


http://reviews.llvm.org/D12616

Files:
  test/CodeGenCXX/sanitize-dtor-trivial.cpp

Index: test/CodeGenCXX/sanitize-dtor-trivial.cpp
===================================================================
--- /dev/null
+++ test/CodeGenCXX/sanitize-dtor-trivial.cpp
@@ -0,0 +1,15 @@
+// Test -fsanitize-memory-use-after-dtor
+// RUN: %clang_cc1 -O0 -fsanitize=memory -fsanitize-memory-use-after-dtor -disable-llvm-optzns -std=c++11 -triple=x86_64-pc-linux -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -O1 -fsanitize=memory -fsanitize-memory-use-after-dtor -disable-llvm-optzns -std=c++11 -triple=x86_64-pc-linux -emit-llvm -o - %s | FileCheck %s
+
+// TODO Success pending on resolution of issue:
+//    https://github.com/google/sanitizers/issues/596
+// XFAIL: *
+
+struct Trivial {
+  int a;
+  int b;
+};
+Trivial t;
+
+// CHECK: call void @__sanitizer_dtor_callback


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12616.34220.patch
Type: text/x-patch
Size: 791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150908/02d36552/attachment.bin>


More information about the cfe-commits mailing list