]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/asan/TestCases/print_summary.cc
1 // RUN: %clangxx_asan -O0 %s -o %t
2 // RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=SOURCE
3 // RUN: %env_asan_opts=symbolize=false not %run %t 2>&1 | FileCheck %s --check-prefix=MODULE
4 // RUN: %env_asan_opts=print_summary=false not %run %t 2>&1 | FileCheck %s --check-prefix=MISSING
7 char *x
= new char[20];
10 // SOURCE: ERROR: AddressSanitizer: heap-use-after-free
11 // SOURCE: SUMMARY: AddressSanitizer: heap-use-after-free {{.*}}print_summary.cc:[[@LINE-2]]{{.*}} main
12 // MODULE: ERROR: AddressSanitizer: heap-use-after-free
13 // MODULE: SUMMARY: AddressSanitizer: heap-use-after-free ({{.*}}+0x{{.*}})
14 // MISSING: ERROR: AddressSanitizer: heap-use-after-free
15 // MISSING-NOT: SUMMARY