1 //@normalize-stderr-test: "OS `.*`" -> "$$OS"
2 // Make sure we pretend the allocation symbols don't exist when there is no allocator
4 #![feature(lang_items, start)]
8 fn __rust_alloc(size: usize, align: usize) -> *mut u8;
12 fn start(_: isize, _: *const *const u8) -> isize {
14 __rust_alloc(1, 1); //~ERROR: unsupported operation: can't call foreign function `__rust_alloc`
21 fn panic_handler(_: &core::panic::PanicInfo) -> ! {
25 #[lang = "eh_personality"]
26 fn eh_personality() {}