[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / compiler-rt / test / gwp_asan / double_delete.cpp
blob5639366faa3394ddc9997466d334c81060d41a97
1 // REQUIRES: gwp_asan
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: Double Free at 0x{{[a-f0-9]+}} (a 1-byte allocation)
8 #include <cstdlib>
10 int main() {
11 char *Ptr = new char;
12 delete Ptr;
13 delete Ptr;
14 return 0;