xref: /llvm-project/clang/test/Lexer/has_feature_realtime_sanitizer.cpp (revision fb1494137e551448d8742d5e6367bf62e923598d)
1*fb149413SChris Apple // RUN: %clang_cc1 -E -fsanitize=realtime %s -o - | FileCheck --check-prefix=CHECK-RTSAN %s
2*fb149413SChris Apple // RUN: %clang_cc1 -E  %s -o - | FileCheck --check-prefix=CHECK-NO-RTSAN %s
3*fb149413SChris Apple 
4*fb149413SChris Apple #if __has_feature(realtime_sanitizer)
5*fb149413SChris Apple int RealtimeSanitizerEnabled();
6*fb149413SChris Apple #else
7*fb149413SChris Apple int RealtimeSanitizerDisabled();
8*fb149413SChris Apple #endif
9*fb149413SChris Apple 
10*fb149413SChris Apple // CHECK-RTSAN: RealtimeSanitizerEnabled
11*fb149413SChris Apple 
12*fb149413SChris Apple // CHECK-NO-RTSAN: RealtimeSanitizerDisabled
13