1
Fork 0

Annotate more tests with kind="static"

This commit is contained in:
Vadim Chugunov 2016-12-05 16:31:05 -08:00
parent 2e03549e67
commit b700dd35e7
8 changed files with 8 additions and 8 deletions

View file

@ -10,7 +10,7 @@
#![crate_type = "dylib"]
#[link(name = "cfoo")]
#[link(name = "cfoo", kind = "static")]
extern {
fn foo();
}

View file

@ -10,7 +10,7 @@
#![crate_type = "rlib"]
#[link(name = "cfoo")]
#[link(name = "cfoo", kind = "static")]
extern {
fn foo();
}

View file

@ -12,7 +12,7 @@ extern crate testcrate;
extern "C" fn bar<T>(ts: testcrate::TestStruct<T>) -> T { ts.y }
#[link(name = "test")]
#[link(name = "test", kind = "static")]
extern {
fn call(c: extern "C" fn(testcrate::TestStruct<i32>) -> i32) -> i32;
}

View file

@ -18,7 +18,7 @@ pub struct TestStruct<T> {
pub extern "C" fn foo<T>(ts: TestStruct<T>) -> T { ts.y }
#[link(name = "test")]
#[link(name = "test", kind = "static")]
extern {
pub fn call(c: extern "C" fn(TestStruct<i32>) -> i32) -> i32;
}

View file

@ -12,7 +12,7 @@
extern crate foo;
#[link(name = "bar")]
#[link(name = "bar", kind = "static")]
extern {
fn bar();
}

View file

@ -10,7 +10,7 @@
#![crate_type = "rlib"]
#[link(name = "foo")]
#[link(name = "foo", kind = "static")]
extern {
fn foo();
}

View file

@ -12,7 +12,7 @@
extern crate libc;
#[link(name = "test")]
#[link(name = "test", kind = "static")]
extern {
fn slice_len(s: &[u8]) -> libc::size_t;
fn slice_elem(s: &[u8], idx: libc::size_t) -> u8;

View file

@ -12,7 +12,7 @@
extern crate libc;
#[link(name="foo")]
#[link(name="foo", kind = "static")]
extern {
fn should_return_one() -> libc::c_int;
}