blob: b3ab24eb6889c1bd9ffba48283384d7f30155e05 [file]
#![feature(rustc_attrs)]
extern "Rust" {
#[rustc_std_internal_symbol]
fn __rust_alloc(size: usize, align: core::mem::Alignment) -> *mut u8;
}
fn main() {
let bytes = isize::MAX as usize + 1;
unsafe {
__rust_alloc(bytes, core::mem::Alignment::MIN); //~ERROR: larger than half the address space
}
}