Debian Codegraph @

gcc/testsuite/rust/compile/unsafe3.rs

raw
1 extern "C" {
2 static VALUE: char;
3 }
4
5 fn main() {
6 let _ = VALUE; // { dg-error "use of extern static" }
7 unsafe {
8 let _ = VALUE;
9 }
10 }