summaryrefslogtreecommitdiff
path: root/test/xray/TestCases/Posix/c-test.cc
blob: f8f5775d168ee1a3f0d0b9f8c1497b72947516f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_xray -g -o %t %s
// RUN: rm xray-log.c-test.* || true
// RUN: XRAY_OPTIONS=patch_premain=true:verbosity=1:xray_mode=xray-basic %t \
// RUN:     2>&1 | FileCheck %s
// RUN: rm xray-log.c-test.* || true
//
// REQUIRES: x86_64-target-arch
// REQUIRES: built-in-llvm-tree
__attribute__((xray_always_instrument)) void always() {}

int main() {
  always();
}

// CHECK: =={{[0-9].*}}==XRay: Log file in '{{.*}}'