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 {}
|