xref: /llvm-project/clang/test/CodeGen/xray-ignore-loops.cpp (revision 14f870366a93ba0c6311883d900e24339681ba76)
11d62be24SIan Levesque // RUN: %clang_cc1 -fxray-instrument -fxray-ignore-loops -x c++ -std=c++11 -emit-llvm -o - %s -triple x86_64-unknown-linux-gnu | FileCheck %s
21d62be24SIan Levesque 
foo()31d62be24SIan Levesque int foo() {
41d62be24SIan Levesque   return 1;
51d62be24SIan Levesque }
61d62be24SIan Levesque 
7*14f87036SIan Levesque // CHECK: define{{.*}} i32 @_Z3foov() #[[ATTRS:[0-9]+]] {
81d62be24SIan Levesque // CHECK-DAG: attributes #[[ATTRS]] = {{.*}} "xray-ignore-loops" {{.*}}
9