brintos

brintos / llvm-project-archived public Read only

0
0
Text · 842 B · 447ee49 Raw
20 lines · cpp
1// RUN: echo "fun:*arg1*=arg1" >> %t.always-instrument2// RUN: echo "[always]" > %t.xray-attrlist3// RUN: echo "fun:*arg1*=arg1" >> %t.xray-attrlist4// RUN: %clang_cc1 -fxray-instrument -x c++ -std=c++11 \5// RUN:     -fxray-always-instrument=%t.always-instrument -emit-llvm -o - %s \6// RUN:     -triple x86_64-unknown-linux-gnu | FileCheck %s7// RUN: %clang_cc1 -fxray-instrument -x c++ -std=c++11 \8// RUN:     -fxray-attr-list=%t.xray-attrlist -emit-llvm -o - %s \9// RUN:     -triple x86_64-unknown-linux-gnu | FileCheck %s10 11void foo() {}12 13void arg1(void*) {}14 15// CHECK: define{{.*}} void @_Z3foov() #[[FOO:[0-9]+]] {16// CHECK: define{{.*}} void {{.*}}arg1{{.*}} #[[ALWAYSARG1:[0-9]+]] {17 18// CHECK: attributes #[[FOO]] = {{.*}}19// CHECK: attributes #[[ALWAYSARG1]] = {{.*}} "function-instrument"="xray-always" {{.*}} "xray-log-args"="1"20