Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / xray / TestCases / Posix / c-test.cpp
blob6427566186514b70ca27da78271dc44634f793f0
1 // RUN: %clang_xray -g -fxray-modes=xray-basic,xray-fdr,xray-profiling -o %t %s
2 // RUN: rm -f xray-log.c-test.*
3 // RUN: XRAY_OPTIONS=patch_premain=true:verbosity=1:xray_mode=xray-basic %t \
4 // RUN: 2>&1 | FileCheck %s
5 // RUN: rm -f xray-log.c-test.*
6 //
7 // REQUIRES: target={{(aarch64|loongarch64|x86_64)-.*}}
8 // REQUIRES: built-in-llvm-tree
9 __attribute__((xray_always_instrument)) void always() {}
11 int main() {
12 always();
15 // CHECK: =={{[0-9].*}}==XRay: Log file in '{{.*}}'