[sanitizer,test] Restore -fno-sized-deallocation coverage
-fsized-deallocation was recently made the default for C++17 onwards (#90373). While here, remove unneeded -faligned-allocation.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// RUN: %clangxx_asan -std=c++1z -faligned-allocation -fsanitize-recover=address -O0 %s -o %t
|
||||
// RUN: %clangxx_asan -fno-sized-deallocation -fsanitize-recover=address -O0 %s -o %t
|
||||
// RUN: %env_asan_opts=new_delete_type_mismatch=1:halt_on_error=false:detect_leaks=false %run %t 2>&1 | FileCheck %s
|
||||
// RUN: %env_asan_opts=new_delete_type_mismatch=0 %run %t
|
||||
|
||||
// RUN: %clangxx_asan -std=c++1z -faligned-allocation -fsized-deallocation -fsanitize-recover=address -O0 %s -o %t
|
||||
// RUN: %clangxx_asan -fsized-deallocation -fsanitize-recover=address -O0 %s -o %t
|
||||
// RUN: %env_asan_opts=new_delete_type_mismatch=1:halt_on_error=false:detect_leaks=false %run %t 2>&1 | FileCheck %s
|
||||
// RUN: %env_asan_opts=new_delete_type_mismatch=0 %run %t
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Check that we report new[] vs delete as alloc-dealloc-mismatch and not as
|
||||
// new-delete-type-mismatch when -fsized-deallocation is enabled.
|
||||
|
||||
// RUN: %clangxx_asan -g %s -o %t && %env_asan_opts=alloc_dealloc_mismatch=1 not %run %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -fno-sized-deallocation -g %s -o %t && %env_asan_opts=alloc_dealloc_mismatch=1 not %run %t 2>&1 | FileCheck %s
|
||||
// RUN: %clangxx_asan -fsized-deallocation -g %s -o %t && %env_asan_opts=alloc_dealloc_mismatch=1 not %run %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Test basic new functionality.
|
||||
// RUN: %clangxx_hwasan -std=c++17 %s -o %t -fsized-deallocation
|
||||
// RUN: %clangxx_hwasan -std=c++17 %s -o %t
|
||||
// RUN: %run %t
|
||||
|
||||
#include <cassert>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %clangxx -std=c++1z -faligned-allocation -O0 %s -o %t && %run %t
|
||||
// RUN: %clangxx -std=c++1z -faligned-allocation -fsized-deallocation -O0 %s -o %t && %run %t
|
||||
// RUN: %clangxx -fno-sized-deallocation -O0 %s -o %t && %run %t
|
||||
// RUN: %clangxx -fsized-deallocation -O0 %s -o %t && %run %t
|
||||
|
||||
// ubsan does not intercept new/delete.
|
||||
// UNSUPPORTED: ubsan
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %clangxx_scudo -std=c++1z -faligned-allocation %s -o %t
|
||||
// RUN: %clangxx_scudo %s -o %t
|
||||
// RUN: %run %t valid 2>&1
|
||||
// RUN: %env_scudo_opts=allocator_may_return_null=1 %run %t invalid 2>&1
|
||||
// RUN: %env_scudo_opts=allocator_may_return_null=0 not %run %t invalid 2>&1 | FileCheck %s
|
||||
|
||||
Reference in New Issue
Block a user