rust/tests/ui/rfc-2627-raw-dylib/link-ordinal-invalid-format.rs
2023-01-11 09:32:08 +00:00

14 lines
339 B
Rust

#![cfg_attr(target_arch = "x86", feature(raw_dylib))]
#[link(name = "foo")]
extern "C" {
#[link_ordinal("JustMonika")]
//~^ ERROR illegal ordinal format in `link_ordinal`
fn foo();
#[link_ordinal("JustMonika")]
//~^ ERROR illegal ordinal format in `link_ordinal`
static mut imported_variable: i32;
}
fn main() {}