[Sanitizer] Disable atomic_test on Android, where it crashes Clang.

llvm-svn: 177998
This commit is contained in:
Alexey Samsonov 2013-03-26 08:55:38 +00:00
parent 9d8043b4cc
commit 7ef76c1cd8
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,9 @@
namespace __sanitizer {
// Clang crashes while compiling this test for Android:
// http://llvm.org/bugs/show_bug.cgi?id=15587
#if !SANITIZER_ANDROID
template<typename T>
void CheckAtomicCompareExchange() {
typedef typename T::Type Type;
@ -47,5 +50,6 @@ TEST(SanitizerCommon, AtomicCompareExchangeTest) {
CheckAtomicCompareExchange<atomic_uint64_t>();
CheckAtomicCompareExchange<atomic_uintptr_t>();
}
#endif //!SANITIZER_ANDROID
} // namespace __sanitizer