1 // RUN: %clangxx -O1 -fno-omit-frame-pointer %s -o %t
2 // RUN: %env_tool_opts=strip_path_prefix=/TestCases/ %run %t 2>&1 | FileCheck %s
3 // RUN: %env_tool_opts=strip_path_prefix=/TestCases/:demangle=0 %run %t 2>&1 | FileCheck %s --check-prefixes=NODEMANGLE
4 // RUN: %env_tool_opts=strip_path_prefix=/TestCases/:demangle=1 %run %t 2>&1 | FileCheck %s
8 #include <sanitizer/common_interface_defs.h>
14 __attribute__((noinline
)) static void Symbolize() {
15 __sanitizer_symbolize_pc(__sanitizer_return_address(), "%p %F %L", buffer
,
17 for (char *p
= buffer
; strlen(p
); p
+= strlen(p
) + 1)
22 __attribute__((noinline
)) ~Symbolizer() { Symbolize(); }
25 // NODEMANGLE: in _ZN10SymbolizerD2Ev
26 // CHECK: in Symbolizer::~Symbolizer