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"] #![crate_type = "dylib"]
#[link(name = "cfoo")] #[link(name = "cfoo", kind = "static")]
extern { extern {
fn foo(); fn foo();
} }

View file

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

View file

@ -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;
} }

View file

@ -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;
} }

View file

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

View file

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

View file

@ -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;

View file

@ -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;
} }