1*b315a0a8SYosh use test_programs::wasi::cli::stdin;
2*b315a0a8SYosh 
main()3*b315a0a8SYosh fn main() {
4*b315a0a8SYosh     let stdin = stdin::get_stdin();
5*b315a0a8SYosh     let p1 = stdin.subscribe();
6*b315a0a8SYosh     let p2 = stdin.subscribe();
7*b315a0a8SYosh 
8*b315a0a8SYosh     // Should work:
9*b315a0a8SYosh     // - Exactly the same pollable passed in multiple times.
10*b315a0a8SYosh     // - Distinct pollables for the same backing resource (stdin in this case).
11*b315a0a8SYosh     test_programs::wasi::io::poll::poll(&[&p1, &p2, &p1, &p2]);
12*b315a0a8SYosh }
13