Files
rust/tests/compile-fail/stack_limit.rs
2017-05-31 13:39:40 -07:00

21 lines
245 B
Rust

#![feature(custom_attribute, attr_literals)]
#![miri(stack_limit=16)]
//error-pattern: reached the configured maximum number of stack frames
fn bar() {
foo();
}
fn foo() {
cake();
}
fn cake() {
bar();
}
fn main() {
bar();
}