File: recursive.rs

package info (click to toggle)
rust-wast 217.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,428 kB
  • sloc: makefile: 2
file content (8 lines) | stat: -rw-r--r-- 187 bytes parent folder | download | duplicates (53)
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());
}