Dean Michael Berris | 170429e | 2017-05-24 05:46:36 +0000 | [diff] [blame^] | 1 | // RUN: echo "fun:*arg1*=arg1" >> %t.always-instrument |
| 2 | // RUN: %clang_cc1 -fxray-instrument -x c++ -std=c++11 -fxray-always-instrument=%t.always-instrument -emit-llvm -o - %s -triple x86_64-unknown-linux-gnu | FileCheck %s |
| 3 | |
| 4 | void foo() {} |
| 5 | |
| 6 | void arg1(void*) {} |
| 7 | |
| 8 | // CHECK: define void @_Z3foov() #[[FOO:[0-9]+]] { |
| 9 | // CHECK: define void {{.*}}arg1{{.*}} #[[ALWAYSARG1:[0-9]+]] { |
| 10 | |
| 11 | // CHECK: attributes #[[FOO]] = {{.*}} |
| 12 | // CHECK: attributes #[[ALWAYSARG1]] = {{.*}} "function-instrument"="xray-always" {{.*}} "xray-log-args"="1" |