1 // Check to make sure that we have a log file with a fixed-size.
3 // RUN: %clangxx_xray -std=c++11 %s -o %t
4 // RUN: XRAY_OPTIONS="patch_premain=true xray_mode=xray-basic verbosity=1 xray_logfile_base=fixedsize-logging-" %run %t 2>&1 | FileCheck %s
6 // After all that, clean up the output xray log.
8 // RUN: rm fixedsize-logging-*
10 // UNSUPPORTED: target-is-mips64,target-is-mips64el
14 [[clang::xray_always_instrument
]] void foo() {
15 printf("foo() is always instrumented!");
19 // CHECK: XRay: Log file in 'fixedsize-logging-{{.*}}'
21 // CHECK: foo() is always instrumented!