diff options
Diffstat (limited to 'tests/codegen/dllimports/auxiliary/wrapper.rs')
-rw-r--r-- | tests/codegen/dllimports/auxiliary/wrapper.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/codegen/dllimports/auxiliary/wrapper.rs b/tests/codegen/dllimports/auxiliary/wrapper.rs new file mode 100644 index 000000000..7aa90920a --- /dev/null +++ b/tests/codegen/dllimports/auxiliary/wrapper.rs @@ -0,0 +1,14 @@ +// no-prefer-dynamic +#![crate_type = "rlib"] + +#[link(name = "dummy", kind="dylib")] +extern "C" { + pub fn dylib_func2(x: i32) -> i32; + pub static dylib_global2: i32; +} + +#[link(name = "dummy", kind="static")] +extern "C" { + pub fn static_func2(x: i32) -> i32; + pub static static_global2: i32; +} |