aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Lexer/has_feature_numerical_stability_sanitizer.cpp
blob: 78884977322b8e5c8434ba88ad1512a62aee3a5c (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -E -fsanitize=numerical %s -o - | FileCheck --check-prefix=CHECK-NSAN %s
// RUN: %clang_cc1 -E  %s -o - | FileCheck --check-prefix=CHECK-NO-NSAN %s

#if __has_feature(numerical_stability_sanitizer)
int NumericalStabilitySanitizerEnabled();
#else
int NumericalStabilitySanitizerDisabled();
#endif

// CHECK-NSAN: NumericalStabilitySanitizerEnabled
// CHECK-NO-NSAN: NumericalStabilitySanitizerDisabled