2016-09-07 03:27:57 -05:00
|
|
|
#![feature(custom_attribute, attr_literals)]
|
2017-05-26 22:27:39 -05:00
|
|
|
#![miri(stack_limit=16)]
|
2016-07-05 06:23:58 -05:00
|
|
|
|
|
|
|
fn bar() {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() {
|
|
|
|
cake(); //~ ERROR reached the configured maximum number of stack frames
|
|
|
|
}
|
|
|
|
|
|
|
|
fn cake() {
|
2017-05-26 22:27:39 -05:00
|
|
|
flubber(3);
|
2016-07-05 06:23:58 -05:00
|
|
|
}
|
|
|
|
|
2017-05-26 22:27:39 -05:00
|
|
|
fn flubber(i: u32) {
|
|
|
|
if i > 0 {
|
|
|
|
flubber(i-1);
|
|
|
|
} else {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
}
|
2016-07-05 06:23:58 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
bar();
|
|
|
|
}
|