]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/asan/TestCases/use-after-scope-capture.cc
1 // RUN: %clangxx_asan -std=c++11 -O1 -fsanitize-address-use-after-scope %s -o %t && \
2 // RUN: not %run %t 2>&1 | FileCheck %s
7 std::function
<int()> f
;
12 // CHECK: ERROR: AddressSanitizer: stack-use-after-scope
13 // CHECK: #0 0x{{.*}} in {{.*}}use-after-scope-capture.cc:[[@LINE-2]]