1 // First, check this works with the default blacklist: 2 // RUN: %clang_cl_asan -O0 %s -Fe%t 3 // RUN: echo "42" | %run %t 2>&1 | FileCheck %s 4 // 5 // Then, make sure it still works when a user uses his own blacklist file: 6 // RUN: %clang_cl_asan -O0 %s -fsanitize-blacklist=%p/../Helpers/initialization-blacklist.txt -Fe%t2 7 // RUN: echo "42" | %run %t2 2>&1 | FileCheck %s 8 9 #include <iostream> 10 11 int main() { 12 int i; 13 std::cout << "Type i: "; 14 std::cin >> i; 15 return 0; 16 // CHECK: Type i: 17 // CHECK-NOT: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 18 } 19