]> git.proxmox.com Git - rustc.git/blob - src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / invalid-compile-flags / branch-protection-missing-pac-ret.rs
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] build-fail
7 // [BADTARGET] needs-llvm-components: x86
8
9 #![crate_type = "lib"]
10 #![feature(no_core, lang_items)]
11 #![no_core]
12
13 #[lang="sized"]
14 trait Sized { }