Annotate more tests with kind="static"
This commit is contained in:
parent
2e03549e67
commit
b700dd35e7
8 changed files with 8 additions and 8 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
#![crate_type = "dylib"]
|
||||
|
||||
#[link(name = "cfoo")]
|
||||
#[link(name = "cfoo", kind = "static")]
|
||||
extern {
|
||||
fn foo();
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
#[link(name = "cfoo")]
|
||||
#[link(name = "cfoo", kind = "static")]
|
||||
extern {
|
||||
fn foo();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
extern crate foo;
|
||||
|
||||
#[link(name = "bar")]
|
||||
#[link(name = "bar", kind = "static")]
|
||||
extern {
|
||||
fn bar();
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
#[link(name = "foo")]
|
||||
#[link(name = "foo", kind = "static")]
|
||||
extern {
|
||||
fn foo();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
extern crate libc;
|
||||
|
||||
#[link(name="foo")]
|
||||
#[link(name="foo", kind = "static")]
|
||||
extern {
|
||||
fn should_return_one() -> libc::c_int;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue