1 // RUN: %clang_cc1 -triple=x86_64-linux-gnu -emit-llvm -fxray-instrument -fxray-instruction-threshold=1 %s -o - \ 2 // RUN: | FileCheck %s 3 4 struct A { 5 A(); 6 ~A(); 7 }; 8 9 A a; 10 11 // Check that the xray-instruction-threshold was applied 12 // 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