[UBSan] Various improvements to vptr.cpp test case
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 29 Apr 2015 20:39:12 +0000 (20:39 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 29 Apr 2015 20:39:12 +0000 (20:39 +0000)
commit299c21474cd8778acad80eab48746325323e6f00
tree4acd865ec73b69cd62ba2620fa60c9b0b9f1d147
parentff46ebe5a4b2066cd1bc25128fc8f9889284d9a7
[UBSan] Various improvements to vptr.cpp test case

* Remove __ubsan_default_options, so that test would work on Darwin
* Fix unintentional undefined behavior in the code (missing return)
* Build the test with -fno-sanitize-recover to distinguish expected
  failures and expected passes by return code.

llvm-svn: 236152
compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp