2012-11-06 06:21:05 +08:00
|
|
|
// RUN: %clang_cc1 -E -fsanitize=address %s -o - | FileCheck --check-prefix=CHECK-ASAN %s
|
2015-06-19 20:19:07 +08:00
|
|
|
// RUN: %clang_cc1 -E -fsanitize=kernel-address %s -o - | FileCheck --check-prefix=CHECK-ASAN %s
|
2011-11-22 09:28:36 +08:00
|
|
|
// 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
|