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