checks to enable. Remove frontend support for -fcatch-undefined-behavior, -faddress-sanitizer and -fthread-sanitizer now that they don't do anything. llvm-svn: 167413
12 lines
362 B
C++
12 lines
362 B
C++
// RUN: %clang_cc1 -E -fsanitize=address %s -o - | FileCheck --check-prefix=CHECK-ASAN %s
|
|
// RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-ASAN %s
|
|
|
|
#if __has_feature(address_sanitizer)
|
|
int AddressSanitizerEnabled();
|
|
#else
|
|
int AddressSanitizerDisabled();
|
|
#endif
|
|
|
|
// CHECK-ASAN: AddressSanitizerEnabled
|
|
// CHECK-NO-ASAN: AddressSanitizerDisabled
|