Add test to check stdout flushing during shutdown.
This commit is contained in:
parent
bab15f773a
commit
e9b25f520b
|
@ -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");
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
hello, world!
|
Loading…
Reference in New Issue