about summary refs log tree commit diff
path: root/tests/ui/runtime/stdout-during-shutdown-windows.rs
blob: 4644965b154cc5bb37c536e6144b9e28d1f2dc12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//@ run-pass
//@ check-run-results
//@ only-windows

struct Bye;

impl Drop for Bye {
    fn drop(&mut self) {
        print!(", world!");
    }
}

fn main() {
    thread_local!{
        static BYE: Bye = Bye;
    }
    BYE.with(|_| {
        print!("hello");
    });
}