brintos

brintos / llvm-project-archived public Read only

0
0
Text · 487 B · d7c7666 Raw
16 lines · cpp
1// RUN: %clang_xray -g -fxray-modes=xray-basic,xray-fdr,xray-profiling -o %t %s2// RUN: rm -f xray-log.c-test.*3// RUN: env XRAY_OPTIONS=patch_premain=true:verbosity=1:xray_mode=xray-basic %t \4// RUN:     2>&1 | FileCheck %s5// RUN: rm -f xray-log.c-test.*6//7// REQUIRES: target={{(aarch64|loongarch64|x86_64)-.*}}8// REQUIRES: built-in-llvm-tree9__attribute__((xray_always_instrument)) void always() {}10 11int main() {12  always();13}14 15// CHECK: =={{[0-9].*}}==XRay: Log file in '{{.*}}'16