1 use test_programs::wasi::cli::stdin;
2 use test_programs::wasi::io::streams;
3 
main()4 fn main() {
5     let stdin: streams::InputStream = stdin::get_stdin();
6     let stdin_pollable = stdin.subscribe();
7     stdin_pollable.block();
8     drop(stdin);
9     unreachable!("execution should have trapped in line above when stream dropped before pollable");
10 }
11