Skip to content

Commit b700dd3

Browse files
committed
Annotate more tests with kind="static"
1 parent 2e03549 commit b700dd3

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/test/run-make/c-static-dylib/foo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#![crate_type = "dylib"]
1212

13-
#[link(name = "cfoo")]
13+
#[link(name = "cfoo", kind = "static")]
1414
extern {
1515
fn foo();
1616
}

src/test/run-make/c-static-rlib/foo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#![crate_type = "rlib"]
1212

13-
#[link(name = "cfoo")]
13+
#[link(name = "cfoo", kind = "static")]
1414
extern {
1515
fn foo();
1616
}

src/test/run-make/extern-fn-generic/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extern crate testcrate;
1212

1313
extern "C" fn bar<T>(ts: testcrate::TestStruct<T>) -> T { ts.y }
1414

15-
#[link(name = "test")]
15+
#[link(name = "test", kind = "static")]
1616
extern {
1717
fn call(c: extern "C" fn(testcrate::TestStruct<i32>) -> i32) -> i32;
1818
}

src/test/run-make/extern-fn-generic/testcrate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct TestStruct<T> {
1818

1919
pub extern "C" fn foo<T>(ts: TestStruct<T>) -> T { ts.y }
2020

21-
#[link(name = "test")]
21+
#[link(name = "test", kind = "static")]
2222
extern {
2323
pub fn call(c: extern "C" fn(TestStruct<i32>) -> i32) -> i32;
2424
}

src/test/run-make/interdependent-c-libraries/bar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
extern crate foo;
1414

15-
#[link(name = "bar")]
15+
#[link(name = "bar", kind = "static")]
1616
extern {
1717
fn bar();
1818
}

src/test/run-make/interdependent-c-libraries/foo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#![crate_type = "rlib"]
1212

13-
#[link(name = "foo")]
13+
#[link(name = "foo", kind = "static")]
1414
extern {
1515
fn foo();
1616
}

src/test/run-make/issue-25581/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
extern crate libc;
1414

15-
#[link(name = "test")]
15+
#[link(name = "test", kind = "static")]
1616
extern {
1717
fn slice_len(s: &[u8]) -> libc::size_t;
1818
fn slice_elem(s: &[u8], idx: libc::size_t) -> u8;

src/test/run-make/link-path-order/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
extern crate libc;
1414

15-
#[link(name="foo")]
15+
#[link(name="foo", kind = "static")]
1616
extern {
1717
fn should_return_one() -> libc::c_int;
1818
}

0 commit comments

Comments
 (0)