[PATCH] D12713: Runtime test for poisoning vtable pointer during destruction.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 14:50:04 PDT 2015


eugenis added inline comments.

================
Comment at: test/msan/dtor-vtable-multiple-inheritance.cc:14
@@ +13,3 @@
+  int x;
+  virtual ~A() {}
+  virtual void A_Foo() {}
----------------
Check that A_foo can be called from ~A

================
Comment at: test/msan/dtor-vtable-multiple-inheritance.cc:50
@@ +49,3 @@
+  // This fails
+  //c->A_Foo();
+
----------------
To test this, place this call under a macro, and add a RUN line with -DMACRO, expecting a crash with a report. Do the same for all other expected crashes (each with a different macro).



http://reviews.llvm.org/D12713





More information about the llvm-commits mailing list