summaryrefslogtreecommitdiffstats
path: root/third_party/rust/wast/tests/recursive.rs
blob: e06e78385e5db33bfbee0c478f0646739e66a0a8 (plain)
1
2
3
4
5
6
7
8
#[test]
fn no_stack_overflow() {
    let mut s = format!("(module (func \n");
    for _ in 0..10_000 {
        s.push_str("(i32.add\n");
    }
    assert!(wat::parse_str(&s).is_err());
}