]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/asan/TestCases/Windows/iostream_sbo.cc
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
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
13 std::cout
<< "Type i: ";
17 // CHECK-NOT: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]]