aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/unsafe3.rs
blob: 56aec76008a50769f2a9cd4cdca3ab4dc2efb515 (plain)
1
2
3
4
5
6
7
8
9
10
extern "C" {
    static VALUE: char;
}

fn main() {
    let _ = VALUE; // { dg-error "use of extern static" }
    unsafe {
        let _ = VALUE;
    }
}