Skip to content

Commit 49e8091

Browse files
committed
Test for branch-protection=none fn attribute
1 parent 672ea93 commit 49e8091

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/test/Frontend/aarch64-ignore-branch-protection-attribute.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ __attribute__((target("branch-protection=standard"))) void f3() {}
1717
/// Supported with pauthtest, no warning emitted
1818
__attribute__((target("branch-protection=bti"))) void f4() {}
1919

20+
/// Supported with pauthtest, no warning emitted
21+
__attribute__((target("branch-protection=none"))) void f5() {}
22+
2023
/// Check there are no branch protection function attributes which are unsupported with pauthtest
2124

2225
// CHECK-NOT: attributes {{.*}} "sign-return-address"

0 commit comments

Comments
 (0)