Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Lexer / has_feature_thread_sanitizer.cpp
blob0a248100c876f5e94659f7cfae4a4b987bfd6808
1 // RUN: %clang_cc1 -E -fsanitize=thread %s -o - | FileCheck --check-prefix=CHECK-TSAN %s
2 // RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-TSAN %s
4 #if __has_feature(thread_sanitizer)
5 int ThreadSanitizerEnabled();
6 #else
7 int ThreadSanitizerDisabled();
8 #endif
10 // CHECK-TSAN: ThreadSanitizerEnabled
11 // CHECK-NO-TSAN: ThreadSanitizerDisabled