You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
459 B
13 lines
459 B
// RUN: %clang_cc1 -E -fsanitize=address %s -o - | FileCheck --check-prefix=CHECK-ASAN %s
|
|
// RUN: %clang_cc1 -E -fsanitize=kernel-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
|