blob: b3bd0666ab21fbb873db90d9c6aa7bd29e0354e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//@ 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]
#[lang = "pointee_sized"]
trait PointeeSized {}
#[lang = "meta_sized"]
trait MetaSized: PointeeSized {}
#[lang = "sized"]
trait Sized: MetaSized {}
#[no_mangle]
pub fn foo() {}
//~? ERROR shadow-call-stack sanitizer is not supported for this target
|