]>
Commit | Line | Data |
---|---|---|
7cac9316 XL |
1 | // Check to make sure that we have a log file with a fixed-size. |
2 | ||
3 | // RUN: %clangxx_xray -std=c++11 %s -o %t | |
4 | // RUN: XRAY_OPTIONS="verbosity=1 xray_logfile_base=fixedsize-logging-" %run %t 2>&1 | FileCheck %s | |
5 | // | |
6 | // After all that, clean up the output xray log. | |
7 | // | |
8 | // RUN: rm fixedsize-logging-* | |
9 | ||
10 | #include <cstdio> | |
11 | ||
12 | [[clang::xray_always_instrument]] void foo() { | |
13 | printf("foo() is always instrumented!"); | |
14 | } | |
15 | ||
16 | int main() { | |
17 | // CHECK: XRay: Log file in 'fixedsize-logging-{{.*}}' | |
18 | foo(); | |
19 | // CHECK: foo() is always instrumented! | |
20 | } |