rust/src/test/ui/rfc-2627-raw-dylib/link-ordinal-and-name.rs

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

13 lines
246 B
Rust
Raw Normal View History

#![feature(raw_dylib)]
2020-04-22 03:21:32 -05:00
//~^ WARN the feature `raw_dylib` is incomplete
#[link(name="foo")]
2020-09-01 16:12:52 -05:00
extern "C" {
#[link_name="foo"]
#[link_ordinal(42)]
//~^ ERROR cannot use `#[link_name]` with `#[link_ordinal]`
fn foo();
}
fn main() {}