summaryrefslogtreecommitdiff
path: root/test/CodeGen/fentry.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/fentry.c')
-rw-r--r--test/CodeGen/fentry.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/CodeGen/fentry.c b/test/CodeGen/fentry.c
index b9133184e4d46..43586c45633d0 100644
--- a/test/CodeGen/fentry.c
+++ b/test/CodeGen/fentry.c
@@ -7,5 +7,12 @@ int foo(void) {
return 0;
}
-//CHECK: attributes #{{[0-9]+}} = { {{.*}}"fentry-call"="true"{{.*}} }
-//NOPG-NOT: attributes #{{[0-9]+}} = { {{.*}}"fentry-call"{{.*}} }
+int __attribute__((no_instrument_function)) no_instrument(void) {
+ return foo();
+}
+
+//CHECK: attributes #0 = { {{.*}}"fentry-call"="true"{{.*}} }
+//CHECK: attributes #1 = { {{.*}} }
+//CHECK-NOT: attributes #1 = { {{.*}}"fentry-call"="true"{{.*}} }
+//NOPG-NOT: attributes #0 = { {{.*}}"fentry-call"{{.*}} }
+//NOPG-NOT: attributes #1 = { {{.*}}"fentry-call"{{.*}} }