rust/tests/ui/rfc-2627-raw-dylib/link-ordinal-too-large.rs

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

14 lines
351 B
Rust
Raw Normal View History

2022-07-29 13:18:07 -05:00
#![cfg_attr(target_arch = "x86", feature(raw_dylib))]
2020-09-01 16:12:52 -05:00
#[link(name = "foo")]
extern "C" {
#[link_ordinal(72436)]
//~^ ERROR ordinal value in `link_ordinal` is too large: `72436`
fn foo();
#[link_ordinal(72436)]
//~^ ERROR ordinal value in `link_ordinal` is too large: `72436`
static mut imported_variable: i32;
}
fn main() {}