brintos

brintos / llvm-project-archived public Read only

0
0
Text · 545 B · 08b31af Raw
19 lines · cpp
1// Check that there is a warning when atos fails to symbolize an address2// and that atos continues symbolicating correctly after.3 4// RUN: %clangxx_asan -O0 %s -o %t5// RUN: not %run %t 2>&1 | FileCheck %s6// REQUIRES: iossim7 8void bar() {9  void *invalid_addr = reinterpret_cast<void *>(0xDEADBEEF);10  void (*func_ptr)() = reinterpret_cast<void (*)()>(invalid_addr);11  func_ptr();12}13 14int main() {15  bar();16  return 0;17  // CHECK: WARNING: atos failed to symbolize address{{.*}}18  // CHECK: {{.*}}atos-symbolized-recover.cpp:[[@LINE-3]]{{.*}}19}