Skip to content

Commit

Permalink
Annotate more tests with kind="static"
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Dec 6, 2016
1 parent 2e03549 commit b700dd3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/test/run-make/c-static-dylib/foo.rs
Expand Up @@ -10,7 +10,7 @@

#![crate_type = "dylib"]

#[link(name = "cfoo")]
#[link(name = "cfoo", kind = "static")]
extern {
fn foo();
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make/c-static-rlib/foo.rs
Expand Up @@ -10,7 +10,7 @@

#![crate_type = "rlib"]

#[link(name = "cfoo")]
#[link(name = "cfoo", kind = "static")]
extern {
fn foo();
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make/extern-fn-generic/test.rs
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make/extern-fn-generic/testcrate.rs
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion src/test/run-make/interdependent-c-libraries/bar.rs
Expand Up @@ -12,7 +12,7 @@

extern crate foo;

#[link(name = "bar")]
#[link(name = "bar", kind = "static")]
extern {
fn bar();
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make/interdependent-c-libraries/foo.rs
Expand Up @@ -10,7 +10,7 @@

#![crate_type = "rlib"]

#[link(name = "foo")]
#[link(name = "foo", kind = "static")]
extern {
fn foo();
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make/issue-25581/test.rs
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-make/link-path-order/main.rs
Expand Up @@ -12,7 +12,7 @@

extern crate libc;

#[link(name="foo")]
#[link(name="foo", kind = "static")]
extern {
fn should_return_one() -> libc::c_int;
}
Expand Down

0 comments on commit b700dd3

Please sign in to comment.