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"]
|
#![crate_type = "dylib"]
|
||||||
|
|
||||||
#[link(name = "cfoo")]
|
#[link(name = "cfoo", kind = "static")]
|
||||||
extern {
|
extern {
|
||||||
fn foo();
|
fn foo();
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
||||||
#[link(name = "cfoo")]
|
#[link(name = "cfoo", kind = "static")]
|
||||||
extern {
|
extern {
|
||||||
fn foo();
|
fn foo();
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ extern crate testcrate;
|
||||||
|
|
||||||
extern "C" fn bar<T>(ts: testcrate::TestStruct<T>) -> T { ts.y }
|
extern "C" fn bar<T>(ts: testcrate::TestStruct<T>) -> T { ts.y }
|
||||||
|
|
||||||
#[link(name = "test")]
|
#[link(name = "test", kind = "static")]
|
||||||
extern {
|
extern {
|
||||||
fn call(c: extern "C" fn(testcrate::TestStruct<i32>) -> i32) -> i32;
|
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 }
|
pub extern "C" fn foo<T>(ts: TestStruct<T>) -> T { ts.y }
|
||||||
|
|
||||||
#[link(name = "test")]
|
#[link(name = "test", kind = "static")]
|
||||||
extern {
|
extern {
|
||||||
pub fn call(c: extern "C" fn(TestStruct<i32>) -> i32) -> i32;
|
pub fn call(c: extern "C" fn(TestStruct<i32>) -> i32) -> i32;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
extern crate foo;
|
extern crate foo;
|
||||||
|
|
||||||
#[link(name = "bar")]
|
#[link(name = "bar", kind = "static")]
|
||||||
extern {
|
extern {
|
||||||
fn bar();
|
fn bar();
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
||||||
#[link(name = "foo")]
|
#[link(name = "foo", kind = "static")]
|
||||||
extern {
|
extern {
|
||||||
fn foo();
|
fn foo();
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
||||||
#[link(name = "test")]
|
#[link(name = "test", kind = "static")]
|
||||||
extern {
|
extern {
|
||||||
fn slice_len(s: &[u8]) -> libc::size_t;
|
fn slice_len(s: &[u8]) -> libc::size_t;
|
||||||
fn slice_elem(s: &[u8], idx: libc::size_t) -> u8;
|
fn slice_elem(s: &[u8], idx: libc::size_t) -> u8;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
||||||
#[link(name="foo")]
|
#[link(name="foo", kind = "static")]
|
||||||
extern {
|
extern {
|
||||||
fn should_return_one() -> libc::c_int;
|
fn should_return_one() -> libc::c_int;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue