summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/pub-extern-privacy.rs
blob: dbbbe4e3b7d8f1db49de3ab944acb58365f5ab56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// run-pass
// ignore-wasm32-bare no libc to test ffi with

// pretty-expanded FIXME #23616

use std::mem::transmute;

mod a {
    extern "C" {
        pub fn free(x: *const u8);
    }
}

pub fn main() {
    unsafe {
        a::free(transmute(0_usize));
    }
}