diff --git a/compiler-rt/test/gwp_asan/sanitize_with_gwp.cpp b/compiler-rt/test/gwp_asan/sanitize_with_gwp.cpp deleted file mode 100644 index fcff51dbcd531b9c86c3e853ea3a98909c52fa36..0000000000000000000000000000000000000000 --- a/compiler-rt/test/gwp_asan/sanitize_with_gwp.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// REQUIRES: gwp_asan -// RUN: %clangxx_gwp_asan -fsanitize=gwp_asan %s -o %t -// RUN: %expect_crash %run %t 2>&1 | FileCheck %s - -// CHECK: GWP-ASan detected a memory error -// CHECK: Double Free at 0x{{[a-f0-9]+}} (a 1-byte allocation) - -#include - -__attribute__((sanitize_with_gwp)) void doubleFree() { - char *Ptr = new char; - delete Ptr; - delete Ptr; - return 0; -} - -int main() { - doubleFree(); - return 0; -}