1; RUN: llc -mtriple=aarch64-linux %s               -o - | \
2; RUN:   FileCheck %s --check-prefix=ASM
3; RUN: llc -mtriple=aarch64-linux %s -filetype=obj -o - |  \
4; RUN:   llvm-readelf --notes | FileCheck %s --check-prefix=OBJ
5
6define dso_local i32 @f() #0 {
7entry:
8  ret i32 0
9}
10
11attributes #0 = { "sign-return-address"="all" }
12
13; PAC attribute present
14; ASM:	    .word	3221225472
15; ASM-NEXT:	.word	4
16; ASM-NEXT:	.word	2
17
18; OBJ: Properties: aarch64 feature: PAC
19