test: fix test under ASAN and MSAN
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 28 Aug 2016 18:16:00 +0000 (18:16 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 28 Aug 2016 18:16:00 +0000 (18:16 +0000)
commit0b7b36a9dda2b66832f4e51f0aab937ea00110aa
treeaea1ca04e0221395659ea5d3a5fcc52df09ca6b1
parent5369cd9e9c6ee758d287e4f3bcc3824db6abd061
test: fix test under ASAN and MSAN

When we're running tests under ASAN or MSAN, they're compiled with -O1, which
enables tail call elimination. This causes backtrace_test to fail: the compiler
performs tail call elimination for call3_nothrow, but it can't for call3_throw,
leading to a mismatched frame count. Disable tail call elimination (and
inlining, just to be explicit) to avoid this.

Patch by Shoaib Meenai!

llvm-svn: 279935
libcxxabi/test/backtrace_test.pass.cpp