rust/tests/compile-fail/oom.rs
Ralf Jung cd6e3e6431 If a "start" lang item incl. MIR is present, run that instead of running main directly
This fixes the memory leaks when running a simple "Hello World" with MIR-libstd
2017-05-30 10:41:38 -07:00

8 lines
164 B
Rust

#![feature(custom_attribute, attr_literals)]
#![miri(memory_size=20)]
fn main() {
let _x = [42; 10];
//~^ERROR tried to allocate 40 more bytes, but only
}