summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-18804/auxiliary/lib.rs
blob: e29d48285d829641fd4e4eab727acd86b9713299 (plain)
1
2
3
4
5
6
7
8
9
10
#![crate_type = "rlib"]
#![feature(linkage)]

pub fn foo<T>() -> *const () {
    extern "C" {
        #[linkage = "extern_weak"]
        static FOO: *const ();
    }
    unsafe { FOO }
}