brintos

brintos / llvm-project-archived public Read only

0
0
Text · 443 B · 588be8a Raw
14 lines · cpp
1// RUN: %clang_cc1 -triple=x86_64-linux-gnu -emit-llvm -fxray-instrument -fxray-instruction-threshold=1 %s -o - \2// RUN:   | FileCheck %s3 4struct A {5  A();6  ~A();7};8 9A a;10 11// Check that the xray-instruction-threshold was applied12// CHECK: define internal void @_GLOBAL__sub_I_xray_global_init.cpp() [[NUX:#[0-9]+]] section ".text.startup" {13// CHECK: attributes [[NUX]] = { noinline nounwind {{.*}}"xray-instruction-threshold"="1"{{.*}} }14