File tree 5 files changed +7
-7
lines changed
sanitizer_common/TestCases/Linux 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %clangxx_asan -std=c++1z -faligned-allocation -fsanitize-recover=address -O0 %s -o %t
1
+ // RUN: %clangxx_asan -fno-sized-deallocation -fsanitize-recover=address -O0 %s -o %t
2
2
// RUN: %env_asan_opts=new_delete_type_mismatch=1:halt_on_error=false:detect_leaks=false %run %t 2>&1 | FileCheck %s
3
3
// RUN: %env_asan_opts=new_delete_type_mismatch=0 %run %t
4
4
5
- // RUN: %clangxx_asan -std=c++1z -faligned-allocation - fsized-deallocation -fsanitize-recover=address -O0 %s -o %t
5
+ // RUN: %clangxx_asan -fsized-deallocation -fsanitize-recover=address -O0 %s -o %t
6
6
// RUN: %env_asan_opts=new_delete_type_mismatch=1:halt_on_error=false:detect_leaks=false %run %t 2>&1 | FileCheck %s
7
7
// RUN: %env_asan_opts=new_delete_type_mismatch=0 %run %t
8
8
Original file line number Diff line number Diff line change 1
1
// Check that we report new[] vs delete as alloc-dealloc-mismatch and not as
2
2
// new-delete-type-mismatch when -fsized-deallocation is enabled.
3
3
4
- // RUN: %clangxx_asan -g %s -o %t && %env_asan_opts=alloc_dealloc_mismatch=1 not %run %t 2>&1 | FileCheck %s
4
+ // RUN: %clangxx_asan -fno-sized-deallocation - g %s -o %t && %env_asan_opts=alloc_dealloc_mismatch=1 not %run %t 2>&1 | FileCheck %s
5
5
// RUN: %clangxx_asan -fsized-deallocation -g %s -o %t && %env_asan_opts=alloc_dealloc_mismatch=1 not %run %t 2>&1 | FileCheck %s
6
6
7
7
#include < stdlib.h>
Original file line number Diff line number Diff line change 1
1
// Test basic new functionality.
2
- // RUN: %clangxx_hwasan -std=c++17 %s -o %t -fsized-deallocation
2
+ // RUN: %clangxx_hwasan -std=c++17 %s -o %t
3
3
// RUN: %run %t
4
4
5
5
#include < cassert>
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx -std=c++1z -faligned-allocation -O0 %s -o %t && %run %t
2
- // RUN: %clangxx -std=c++1z -faligned-allocation - fsized-deallocation -O0 %s -o %t && %run %t
1
+ // RUN: %clangxx -fno-sized-deallocation -O0 %s -o %t && %run %t
2
+ // RUN: %clangxx -fsized-deallocation -O0 %s -o %t && %run %t
3
3
4
4
// ubsan does not intercept new/delete.
5
5
// UNSUPPORTED: ubsan
Original file line number Diff line number Diff line change 1
- // RUN: %clangxx_scudo -std=c++1z -faligned-allocation %s -o %t
1
+ // RUN: %clangxx_scudo %s -o %t
2
2
// RUN: %run %t valid 2>&1
3
3
// RUN: %env_scudo_opts=allocator_may_return_null=1 %run %t invalid 2>&1
4
4
// RUN: %env_scudo_opts=allocator_may_return_null=0 not %run %t invalid 2>&1 | FileCheck %s
You can’t perform that action at this time.
0 commit comments