2024-10-16 15:39:58 +01:00
|
|
|
//@ revisions: BADFLAGS BADFLAGSPC BADTARGET
|
2022-01-31 21:47:07 +02:00
|
|
|
//@ [BADFLAGS] compile-flags: --target=aarch64-unknown-linux-gnu -Zbranch-protection=leaf
|
|
|
|
|
//@ [BADFLAGS] check-fail
|
|
|
|
|
//@ [BADFLAGS] needs-llvm-components: aarch64
|
2024-10-16 15:39:58 +01:00
|
|
|
//@ [BADFLAGSPC] compile-flags: --target=aarch64-unknown-linux-gnu -Zbranch-protection=pc
|
|
|
|
|
//@ [BADFLAGSPC] check-fail
|
|
|
|
|
//@ [BADFLAGSPC] needs-llvm-components: aarch64
|
2022-01-31 21:47:07 +02:00
|
|
|
//@ [BADTARGET] compile-flags: --target=x86_64-unknown-linux-gnu -Zbranch-protection=bti
|
2022-11-21 16:05:51 +00:00
|
|
|
//@ [BADTARGET] check-fail
|
2022-01-31 21:47:07 +02:00
|
|
|
//@ [BADTARGET] needs-llvm-components: x86
|
|
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
|
#![no_core]
|
|
|
|
|
|
2024-10-16 15:39:58 +01:00
|
|
|
#[lang = "sized"]
|
|
|
|
|
trait Sized {}
|
2025-03-23 15:50:51 +03:00
|
|
|
|
|
|
|
|
//[BADFLAGS]~? ERROR incorrect value `leaf` for unstable option `branch-protection`
|
|
|
|
|
//[BADFLAGSPC]~? ERROR incorrect value `pc` for unstable option `branch-protection`
|
|
|
|
|
//[BADTARGET]~? ERROR `-Zbranch-protection` is only supported on aarch64
|