Add test to check stdout flushing during shutdown.

This commit is contained in:
Mara Bos 2020-09-24 18:10:26 +02:00
parent bab15f773a
commit e9b25f520b
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,14 @@
// run-pass
// check-run-results
#![feature(rustc_private)]
extern crate libc;
fn main() {
extern "C" fn bye() {
print!(", world!");
}
unsafe { libc::atexit(bye) };
print!("hello");
}

View File

@ -0,0 +1 @@
hello, world!