| 1 |
// REQUIRES: disable_symbolizer_path_search |
| 2 |
|
| 3 |
// RUN: %clangxx %s -o %t |
| 4 |
// RUN: %env_unset_tool_symbolizer_path \ |
| 5 |
// RUN: %env_tool_opts=verbosity=3 %run %t 2>&1 | FileCheck %s |
| 6 |
|
| 7 |
// CHECK: Symbolizer path search is disabled in the runtime build configuration |
| 8 |
|
| 9 |
#include <sanitizer/common_interface_defs.h> |
| 10 |
#include <stdio.h> |
| 11 |
|
| 12 |
static void Symbolize() { |
| 13 |
char buffer[100]; |
| 14 |
__sanitizer_symbolize_pc(__builtin_return_address(0), "%p %F %L", buffer, |
| 15 |
sizeof(buffer)); |
| 16 |
printf("%s\n", buffer); |
| 17 |
} |
| 18 |
|
| 19 |
int main() { Symbolize(); } |