[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / xray-function-index.c
blob3c2ead58e91b1349b91a3d58e388910cad7f208a
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -S -triple x86_64 -fxray-instrument -fxray-instruction-threshold=1 %s -o - | FileCheck %s
3 // RUN: %clang_cc1 -S -triple x86_64 -fxray-instrument -fxray-instruction-threshold=1 -fno-xray-function-index %s -o - | FileCheck %s --check-prefix=NO
5 // CHECK: .section xray_fn_idx,"ao",@progbits,foo
6 // NO-NOT: .section xray_fn_idx
8 void foo(void) {}