1 // RUN: %clangxx_asan -O0 %s -o %t
3 // RUN: not %run %t 'A' 2>&1 | FileCheck %s
4 // RUN: not %run %t 'B' 2>&1 | FileCheck %s
6 // Missing lifetime markers in test_a
7 // https://bugs.llvm.org/show_bug.cgi?id=34353
17 explicit C(const char *c
) : p(c
) {}
18 explicit C(const B
&b
) : p(&b
.p
) {}
24 const operator C() const { return C(&p
); }
38 int main(int argc
, char **argv
) {
50 // CHECK: ERROR: AddressSanitizer: stack-use-after-scope