1 // revisions: BADFLAGS BADTARGET
2 // [BADFLAGS] compile-flags: --target=aarch64-unknown-linux-gnu -Zbranch-protection=leaf
3 // [BADFLAGS] check-fail
4 // [BADFLAGS] needs-llvm-components: aarch64
5 // [BADTARGET] compile-flags: --target=x86_64-unknown-linux-gnu -Zbranch-protection=bti
6 // [BADTARGET] check-fail
7 // [BADTARGET] needs-llvm-components: x86
10 #![feature(no_core, lang_items)]