[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Lexer / has_feature_realtime_sanitizer.cpp
blob76febeb6473a4bdae085554681af2c9fea82be02
1 // RUN: %clang_cc1 -E -fsanitize=realtime %s -o - | FileCheck --check-prefix=CHECK-RTSAN %s
2 // RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-RTSAN %s
4 #if __has_feature(realtime_sanitizer)
5 int RealtimeSanitizerEnabled();
6 #else
7 int RealtimeSanitizerDisabled();
8 #endif
10 // CHECK-RTSAN: RealtimeSanitizerEnabled
12 // CHECK-NO-RTSAN: RealtimeSanitizerDisabled