rust/tests/ui/issues/issue-18804/auxiliary/lib.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
187 B
Rust
Raw Normal View History

#![crate_type = "rlib"]
#![feature(linkage)]
2020-09-01 16:12:52 -05:00
pub fn foo<T>() -> *const () {
extern "C" {
#[linkage = "extern_weak"]
2020-09-01 16:12:52 -05:00
static FOO: *const ();
}
unsafe { FOO }
}