brintos

brintos / llvm-project-archived public Read only

0
0
Text · 486 B · 44f025d Raw
11 lines · cpp
1// Test that we cannot actually find XRay instrumentation when we build with2// -fno-xray-instrument but have code that's marked as 'xray_always_instrument'.3//4// RUN: %clangxx -fno-xray-instrument -c %s -o %t.o5// RUN: not %llvm_xray extract -symbolize %t.o 2>&1 | FileCheck %s6// REQUIRES: built-in-llvm-tree7 8// CHECK: llvm-xray: Cannot extract instrumentation map9// CHECK-NOT: {{.*always_instrumented.*}}10[[clang::xray_always_instrument]] int always_instrumented() { return 42; }11