summaryrefslogtreecommitdiffstats
path: root/tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs')
-rw-r--r--tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs b/tests/ui/invalid-compile-flags/branch-protection-missing-pac-ret.rs
new file mode 100644
index 000000000..1d7ec5cba
--- /dev/null
+++ b/tests/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] check-fail
+// [BADTARGET] needs-llvm-components: x86
+
+#![crate_type = "lib"]
+#![feature(no_core, lang_items)]
+#![no_core]
+
+#[lang="sized"]
+trait Sized { }