Mercurial > hg > CbC > CbC_llvm
comparison compiler-rt/test/sanitizer_common/TestCases/print-stack-trace.cpp @ 221:79ff65ed7e25
LLVM12 Original
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Jun 2021 19:15:29 +0900 |
parents | 1d019706d866 |
children |
comparison
equal
deleted
inserted
replaced
220:42394fc6a535 | 221:79ff65ed7e25 |
---|---|
1 // RUN: %clangxx -O0 %s -o %t && %env_tool_opts=stack_trace_format=DEFAULT %run %t 2>&1 | FileCheck %s | 1 // RUN: %clangxx -O0 %s -o %t && %env_tool_opts=stack_trace_format=DEFAULT %run %t 2>&1 | FileCheck %s |
2 // RUN: %clangxx -O3 %s -o %t && %env_tool_opts=stack_trace_format=DEFAULT %run %t 2>&1 | FileCheck %s | 2 // RUN: %clangxx -O3 %s -o %t && %env_tool_opts=stack_trace_format=DEFAULT %run %t 2>&1 | FileCheck %s |
3 // RUN: %env_tool_opts=stack_trace_format=frame%n_lineno%l %run %t 2>&1 | FileCheck %s --check-prefix=CUSTOM | 3 // RUN: %env_tool_opts=stack_trace_format=frame%n_lineno%l %run %t 2>&1 | FileCheck %s --check-prefix=CUSTOM |
4 // RUN: %env_tool_opts=symbolize_inline_frames=false:stack_trace_format=DEFAULT %run %t 2>&1 | FileCheck %s --check-prefix=NOINLINE | 4 // RUN: %env_tool_opts=symbolize_inline_frames=false:stack_trace_format=DEFAULT %run %t 2>&1 | FileCheck %s --check-prefix=NOINLINE |
5 // RUN: %env_tool_opts=stack_trace_format='"frame:%n address:%%p"' %run %t 2>&1 | FileCheck %s --check-prefix=NOSYMBOLIZE | |
5 | 6 |
6 // UNSUPPORTED: darwin | 7 // UNSUPPORTED: darwin |
7 | 8 |
8 // TODO(yln): temporary failing due to refactoring | 9 // TODO(yln): temporary failing due to refactoring |
9 // UNSUPPORTED: ubsan | 10 // UNSUPPORTED: ubsan |
25 // CUSTOM: frame1_lineno[[@LINE-11]] | 26 // CUSTOM: frame1_lineno[[@LINE-11]] |
26 // CUSTOM: frame2_lineno[[@LINE-8]] | 27 // CUSTOM: frame2_lineno[[@LINE-8]] |
27 | 28 |
28 // NOINLINE: #0 0x{{.*}} in __sanitizer_print_stack_trace | 29 // NOINLINE: #0 0x{{.*}} in __sanitizer_print_stack_trace |
29 // NOINLINE: #1 0x{{.*}} in main{{.*}}print-stack-trace.cpp:[[@LINE-15]] | 30 // NOINLINE: #1 0x{{.*}} in main{{.*}}print-stack-trace.cpp:[[@LINE-15]] |
31 | |
32 // NOSYMBOLIZE: frame:0 address:{{0x.*}} | |
33 // NOSYMBOLIZE: frame:1 address:{{0x.*}} | |
34 // NOSYMBOLIZE: frame:2 address:{{0x.*}} |