rust/tests/compile-fail/oom.rs
Ralf Jung 1241938f97 test suite now also passes on MIR-libstd
Also enable some tests that were disabled for no apparant reason.
(The comment in zst.rs was wrong, the test was disabled also for miri execution.)
Delete env_args test as the args can actually be queried with MIR-libstd (currently, they are always empty)
2017-05-30 10:41:38 -07:00

8 lines
170 B
Rust

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