summaryrefslogtreecommitdiffstats
path: root/src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs')
-rw-r--r--src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs b/src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs
new file mode 100644
index 000000000..4bc4919bc
--- /dev/null
+++ b/src/test/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs
@@ -0,0 +1,14 @@
+// revisions: BADFLAGS BADTARGET
+// [BADFLAGS] compile-flags: --target=aarch64-unknown-linux-gnu -Zbranch-protection=leaf
+// [BADFLAGS] check-fail
+// [BADFLAGS] needs-llvm-components: aarch64
+// [BADTARGET] compile-flags: --target=x86_64-unknown-linux-gnu -Zbranch-protection=bti
+// [BADTARGET] build-fail
+// [BADTARGET] needs-llvm-components: x86
+
+#![crate_type = "lib"]
+#![feature(no_core, lang_items)]
+#![no_core]
+
+#[lang="sized"]
+trait Sized { }