about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-05-05 14:41:12 +0200
committerRalf Jung <post@ralfj.de>2024-05-05 15:46:13 +0200
commitf3018409fc85dcf4ef95a1f97915b010796d1afe (patch)
treebcb8fa2d21238dc6ff3abfa9f1ba13add762cbee
parentaaf5c5e742e72da91721e29276a27e5f5c32a377 (diff)
downloadrust-f3018409fc85dcf4ef95a1f97915b010796d1afe.tar.gz
rust-f3018409fc85dcf4ef95a1f97915b010796d1afe.zip
hello: also ensure stderr works
-rw-r--r--src/tools/miri/tests/pass/hello.rs1
-rw-r--r--src/tools/miri/tests/pass/hello.stderr1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/miri/tests/pass/hello.rs b/src/tools/miri/tests/pass/hello.rs
index e7a11a969c0..2a02a7a9e20 100644
--- a/src/tools/miri/tests/pass/hello.rs
+++ b/src/tools/miri/tests/pass/hello.rs
@@ -1,3 +1,4 @@
 fn main() {
     println!("Hello, world!");
+    eprintln!("Hello, error!");
 }
diff --git a/src/tools/miri/tests/pass/hello.stderr b/src/tools/miri/tests/pass/hello.stderr
new file mode 100644
index 00000000000..445a1bc8fa4
--- /dev/null
+++ b/src/tools/miri/tests/pass/hello.stderr
@@ -0,0 +1 @@
+Hello, error!