1 // Test that we cannot actually find XRay instrumentation when we build with
2 // -fno-xray-instrument but have code that's marked as 'xray_always_instrument'.
3 //
4 // RUN: %clangxx -fno-xray-instrument -c %s -o %t.o
5 // RUN: not %llvm_xray extract -symbolize %t.o 2>&1 | FileCheck %s
6 // REQUIRES: x86_64-target-arch
7 // REQUIRES: built-in-llvm-tree
8
9 // CHECK: llvm-xray: Cannot extract instrumentation map
10 // CHECK-NOT: {{.*always_instrumented.*}}
always_instrumented()11 [[clang::xray_always_instrument]] int always_instrumented() { return 42; }
12