test case for poisoning trivial members
Summary: A virtual base class and derived class should only poison their respective members upon destruction. In particular, trivial members should be poisoned directly, non-trivial members should be poisoned by their respective destructors, and references to non-trivial members should be poisoned. Reviewers: eugenis, kcc Differential Revision: http://reviews.llvm.org/D11912 Test case avoids casting to access members Run configurations to reflect expected runtime failure on assertions. Simplified access to internal members. Updated internal member structure of base. Revised assert in main to verify successful poisoning after dtor. Verify address of pointer is poisoned. Fixed assert err. Cleaned up test by removing extraneous prints, asserts. llvm-svn: 244521
Loading
Please sign in to comment