diff options
Diffstat (limited to 'tests/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs')
-rw-r--r-- | tests/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs b/tests/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs new file mode 100644 index 000000000..631c363d4 --- /dev/null +++ b/tests/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs @@ -0,0 +1,14 @@ +// only-windows +#![cfg_attr(target_arch = "x86", feature(raw_dylib))] + +#[link(name = "foo", kind = "raw-dylib")] +extern "C" { + #[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes + #[link_ordinal(2)] + fn foo(); + #[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes + #[link_ordinal(2)] + static mut imported_variable: i32; +} + +fn main() {} |