brintos

brintos / llvm-project-archived public Read only

0
0
Text · 546 B · 72317f6 Raw
20 lines · cpp
1// REQUIRES: disable_symbolizer_path_search2 3// RUN: %clangxx %s -o %t4// RUN: %env_unset_tool_symbolizer_path \5// RUN: %env_tool_opts=verbosity=3 %run %t 2>&1 | FileCheck %s6 7// CHECK: Symbolizer path search is disabled in the runtime build configuration8 9#include <sanitizer/common_interface_defs.h>10#include <stdio.h>11 12static 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 19int main() { Symbolize(); }20