Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / xray-global-init.cpp
blob588be8a45a507c740be7e09c19939acaf52e7957
1 // RUN: %clang_cc1 -triple=x86_64-linux-gnu -emit-llvm -fxray-instrument -fxray-instruction-threshold=1 %s -o - \
2 // RUN: | FileCheck %s
4 struct A {
5 A();
6 ~A();
7 };
9 A a;
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"{{.*}} }