]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2627-raw-dylib/link-ordinal-too-large.rs
Auto merge of #100581 - joboet:sync_rwlock_everywhere, r=thomcc
[rust.git] / src / test / ui / rfc-2627-raw-dylib / link-ordinal-too-large.rs
1 #![cfg_attr(target_arch = "x86", feature(raw_dylib))]
2
3 #[link(name = "foo")]
4 extern "C" {
5     #[link_ordinal(72436)]
6     //~^ ERROR ordinal value in `link_ordinal` is too large: `72436`
7     fn foo();
8     #[link_ordinal(72436)]
9     //~^ ERROR ordinal value in `link_ordinal` is too large: `72436`
10     static mut imported_variable: i32;
11 }
12
13 fn main() {}