brintos

brintos / llvm-project-archived public Read only

0
0
Text · 440 B · e00ff3b Raw
17 lines · cpp
1// RUN: rm -fr %t && mkdir %t && cd %t2// RUN: %clang_xray %s -o a.out3// RUN: %run %t/a.out 2>&1 | FileCheck %s4 5// REQUIRES: built-in-llvm-tree6 7extern "C" __attribute__((xray_never_instrument)) const char *8__xray_default_options() {9  return "patch_premain=true:verbosity=1:xray_mode=xray-basic";10}11 12__attribute__((xray_always_instrument)) void always() {}13 14int main() { always(); }15 16// CHECK: =={{[0-9].*}}==XRay: Log file in '{{.*}}'17