Dmitry Vyukov | 728e212 | 2012-12-17 08:52:05 +0000 | [diff] [blame] | 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 | ||||
3 | |||||
4 | #if __has_feature(thread_sanitizer) | ||||
5 | int ThreadSanitizerEnabled(); | ||||
6 | #else | ||||
7 | int ThreadSanitizerDisabled(); | ||||
8 | #endif | ||||
9 | |||||
10 | // CHECK-TSAN: ThreadSanitizerEnabled | ||||
11 | // CHECK-NO-TSAN: ThreadSanitizerDisabled |