2 // RUN: %clangxx_gwp_asan %s -o %t
3 // RUN: %expect_crash %run %t 2>&1 | FileCheck %s
5 // CHECK: GWP-ASan detected a memory error
6 // CHECK: Use After Free at 0x{{[a-f0-9]+}} (0 bytes into a 10-byte allocation
11 char *Ptr
= reinterpret_cast<char *>(malloc(10));
13 for (unsigned i
= 0; i
< 10; ++i
) {
18 volatile char x
= *Ptr
;