1 // revisions: mir thir
2 // [thir]compile-flags: -Z thir-unsafeck
3 
4 extern "C" {
5     static error_message_count: u32;
6 }
7 
8 pub static BAZ: u32 = *&error_message_count;
9 //~^ ERROR use of extern static is unsafe and requires
10 
main()11 fn main() {}
12