rust/tests/compile-fail/oom2.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

9 lines
193 B
Rust

#![feature(box_syntax, custom_attribute, attr_literals)]
#![miri(memory_size=2048)]
fn main() {
loop {
::std::mem::forget(box 42); //~ ERROR tried to allocate 4 more bytes
}
}