2024-07-29 23:10:34 +08:00
|
|
|
//@ compile-flags: --target aarch64-unknown-none -Zsanitizer=shadow-call-stack
|
|
|
|
|
//@ dont-check-compiler-stderr
|
|
|
|
|
//@ needs-llvm-components: aarch64
|
|
|
|
|
|
|
|
|
|
#![allow(internal_features)]
|
|
|
|
|
#![crate_type = "rlib"]
|
|
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
|
#![no_core]
|
|
|
|
|
|
2025-01-23 11:25:12 +00:00
|
|
|
#[lang = "pointee_sized"]
|
|
|
|
|
trait PointeeSized {}
|
|
|
|
|
|
|
|
|
|
#[lang = "meta_sized"]
|
|
|
|
|
trait MetaSized: PointeeSized {}
|
|
|
|
|
|
2024-07-29 23:10:34 +08:00
|
|
|
#[lang = "sized"]
|
2025-01-23 11:25:12 +00:00
|
|
|
trait Sized: MetaSized {}
|
2024-07-29 23:10:34 +08:00
|
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
|
pub fn foo() {}
|
2025-03-29 02:41:32 +03:00
|
|
|
|
|
|
|
|
//~? ERROR shadow-call-stack sanitizer is not supported for this target
|