Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

338 B
Raw Blame
use test_programs::wasi::cli::stdin;
use test_programs::wasi::io::streams;

fn main() {
    let stdin: streams::InputStream = stdin::get_stdin();
    let stdin_pollable = stdin.subscribe();
    stdin_pollable.block();
    drop(stdin);
    unreachable!("execution should have trapped in line above when stream dropped before pollable");
}