From 63714eb5809e39666dec2454c354195e76f916ba Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 20 Aug 2019 18:00:15 +0000 Subject: Remove upstream files and directories from vendor/compiler-rt/dist that we do not use. This saves on repository space, and reduces the number of tree conflicts when merging. --- .../TestCases/Linux/aligned_alloc-alignment.cc | 25 ---------------------- 1 file changed, 25 deletions(-) delete mode 100644 test/hwasan/TestCases/Linux/aligned_alloc-alignment.cc (limited to 'test/hwasan/TestCases/Linux/aligned_alloc-alignment.cc') diff --git a/test/hwasan/TestCases/Linux/aligned_alloc-alignment.cc b/test/hwasan/TestCases/Linux/aligned_alloc-alignment.cc deleted file mode 100644 index a5dc7f661c7a..000000000000 --- a/test/hwasan/TestCases/Linux/aligned_alloc-alignment.cc +++ /dev/null @@ -1,25 +0,0 @@ -// RUN: %clangxx_hwasan -O0 %s -o %t -// RUN: %env_hwasan_opts=allocator_may_return_null=0 not %run %t 2>&1 | FileCheck %s -// RUN: %env_hwasan_opts=allocator_may_return_null=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NULL - -// UNSUPPORTED: android - -// REQUIRES: stable-runtime - -#include -#include - -extern void *aligned_alloc(size_t alignment, size_t size); - -int main() { - void *p = aligned_alloc(17, 100); - // CHECK: ERROR: HWAddressSanitizer: invalid alignment requested in aligned_alloc: 17 - // CHECK: {{#0 0x.* in .*}}{{aligned_alloc|memalign}} - // CHECK: {{#1 0x.* in main .*aligned_alloc-alignment.cc:}}[[@LINE-3]] - // CHECK: SUMMARY: HWAddressSanitizer: invalid-aligned-alloc-alignment - - printf("pointer after failed aligned_alloc: %zd\n", (size_t)p); - // CHECK-NULL: pointer after failed aligned_alloc: 0 - - return 0; -} -- cgit v1.3