about summary refs log tree commit diff
path: root/src/tools/miri/tests/fail/shims/isolated_stdin.rs
blob: 9f809039adad73d347645777b27ffe941b7412c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@error-in-other-file: `read` from stdin not available when isolation is enabled
//@normalize-stderr-test: "src/sys/.*\.rs" -> "$$FILE"
//@normalize-stderr-test: "\nLL \| .*" -> ""
//@normalize-stderr-test: "\n... .*" -> ""
//@normalize-stderr-test: "\| +[|_^]+" -> "| ^"
//@normalize-stderr-test: "\n *= note:.*" -> ""
use std::io::{self, Read};

fn main() {
    let mut bytes = [0u8; 512];
    io::stdin().read(&mut bytes).unwrap();
}