| 1 | // RUN: rm -fr %t && mkdir %t && cd %t |
|---|---|
| 2 | // RUN: %clang_xray %s -o a.out |
| 3 | // RUN: %run %t/a.out 2>&1 | FileCheck %s |
| 4 | |
| 5 | // REQUIRES: built-in-llvm-tree |
| 6 | |
| 7 | extern "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 | |
| 14 | int main() { always(); } |
| 15 | |
| 16 | // CHECK: =={{[0-9].*}}==XRay: Log file in '{{.*}}' |
| 17 |
