Skip to content

Commit e9b25f5

Browse files
committed
Add test to check stdout flushing during shutdown.
1 parent bab15f7 commit e9b25f5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/test/ui/stdout-during-shutdown.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// run-pass
2+
// check-run-results
3+
4+
#![feature(rustc_private)]
5+
6+
extern crate libc;
7+
8+
fn main() {
9+
extern "C" fn bye() {
10+
print!(", world!");
11+
}
12+
unsafe { libc::atexit(bye) };
13+
print!("hello");
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hello, world!

0 commit comments

Comments
 (0)