1 // Test that PAC instructions are emitted when branch-protection is specified.
3 // assembly-output: emit-asm
4 // compile-flags: --target aarch64-unknown-linux-gnu
5 // compile-flags: -Z branch-protection=pac-ret,leaf
6 // needs-llvm-components: aarch64
8 #![feature(no_core, lang_items)]
11 #![crate_type = "lib"]