forked from OSchip/llvm-project
compiler-rt: Rename cc files below test/sanitizer_common to cpp
See r367803 and similar other changes. llvm-svn: 367863
This commit is contained in:
parent
6ca6e91615
commit
74989aff53
|
@ -56,7 +56,7 @@ struct alignas(1024) S1024_1024 { char a[1024]; };
|
|||
|
||||
int main(int argc, char **argv) {
|
||||
// Check the mismatched calls only, all the valid cases are verified in
|
||||
// test/sanitizer_common/TestCases/Linux/new_delete_test.cc.
|
||||
// test/sanitizer_common/TestCases/Linux/new_delete_test.cpp.
|
||||
|
||||
operator delete(break_optimization(new S12_128), std::nothrow);
|
||||
// CHECK: AddressSanitizer: new-delete-type-mismatch
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Check that sanitizers on OS X crash the process by default (i.e.
|
||||
// abort_on_error=1). See also Linux/abort_on_error.cc.
|
||||
// abort_on_error=1). See also Linux/abort_on_error.cpp.
|
||||
|
||||
// RUN: %clangxx -DUSING_%tool_name %s -o %t
|
||||
|
|
@ -12,8 +12,8 @@ int main() {
|
|||
return 0;
|
||||
}
|
||||
// CHECK: {{ #0 0x.* in __sanitizer_print_stack_trace}}
|
||||
// CHECK: {{ #1 0x.* in FooBarBaz(\(\))? .*}}print-stack-trace.cc:[[@LINE-8]]
|
||||
// CHECK: {{ #2 0x.* in main.*}}print-stack-trace.cc:[[@LINE-5]]
|
||||
// CHECK: {{ #1 0x.* in FooBarBaz(\(\))? .*}}print-stack-trace.cpp:[[@LINE-8]]
|
||||
// CHECK: {{ #2 0x.* in main.*}}print-stack-trace.cpp:[[@LINE-5]]
|
||||
|
||||
// CUSTOM: frame:1 lineno:[[@LINE-11]]
|
||||
// CUSTOM: frame:2 lineno:[[@LINE-8]]
|
|
@ -1,5 +1,5 @@
|
|||
// Check that sanitizers call _exit() on Linux by default (i.e.
|
||||
// abort_on_error=0). See also Darwin/abort_on_error.cc.
|
||||
// abort_on_error=0). See also Darwin/abort_on_error.cpp.
|
||||
|
||||
// RUN: %clangxx %s -o %t
|
||||
|
|
@ -31,7 +31,7 @@ int main(int argc, char **argv) {
|
|||
// CHECK: {{ERROR: .*Sanitizer: invalid alignment requested in aligned_alloc}}
|
||||
// Handle a case when aligned_alloc is aliased by memalign.
|
||||
// CHECK: {{#0 .*}}{{aligned_alloc|memalign}}
|
||||
// CHECK: {{#1 .*main .*aligned_alloc-alignment.cc:}}[[@LINE-4]]
|
||||
// CHECK: {{#1 .*main .*aligned_alloc-alignment.cpp:}}[[@LINE-4]]
|
||||
// CHECK: {{SUMMARY: .*Sanitizer: invalid-aligned-alloc-alignment}}
|
||||
|
||||
// The NULL pointer is printed differently on different systems, while (long)0
|
|
@ -35,7 +35,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
// CHECK: {{ERROR: .*Sanitizer: pvalloc parameters overflow: size .* rounded up to system page size .* cannot be represented in type size_t}}
|
||||
// CHECK: {{#0 .*pvalloc}}
|
||||
// CHECK: {{#1 .*main .*pvalloc-overflow.cc:}}
|
||||
// CHECK: {{#1 .*main .*pvalloc-overflow.cpp:}}
|
||||
// CHECK: {{SUMMARY: .*Sanitizer: pvalloc-overflow}}
|
||||
|
||||
// The NULL pointer is printed differently on different systems, while (long)0
|
|
@ -35,7 +35,7 @@ int main(int argc, char **argv) {
|
|||
int res = posix_memalign(&p, alignment, 100);
|
||||
// CHECK: {{ERROR: .*Sanitizer: invalid alignment requested in posix_memalign}}
|
||||
// CHECK: {{#0 .*posix_memalign}}
|
||||
// CHECK: {{#1 .*main .*posix_memalign-alignment.cc:}}[[@LINE-3]]
|
||||
// CHECK: {{#1 .*main .*posix_memalign-alignment.cpp:}}[[@LINE-3]]
|
||||
// CHECK: {{SUMMARY: .*Sanitizer: invalid-posix-memalign-alignment}}
|
||||
|
||||
// The NULL pointer is printed differently on different systems, while (long)0
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue