Richard Smith | b1b0ab4 | 2012-11-05 22:21:05 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -E -fsanitize=address %s -o - | FileCheck --check-prefix=CHECK-ASAN %s |
Kostya Serebryany | c3333e8 | 2011-11-22 01:28:36 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-ASAN %s |
3 | |||||
4 | #if __has_feature(address_sanitizer) | ||||
5 | int AddressSanitizerEnabled(); | ||||
6 | #else | ||||
7 | int AddressSanitizerDisabled(); | ||||
8 | #endif | ||||
9 | |||||
10 | // CHECK-ASAN: AddressSanitizerEnabled | ||||
11 | // CHECK-NO-ASAN: AddressSanitizerDisabled |