Skip to content

Commit 56e301d

Browse files
committed
rewrite linkage-attr-on-static to rmake
1 parent f60aec5 commit 56e301d

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ run-make/libtest-thread-limit/Makefile
6767
run-make/link-cfg/Makefile
6868
run-make/link-framework/Makefile
6969
run-make/link-path-order/Makefile
70-
run-make/linkage-attr-on-static/Makefile
7170
run-make/long-linker-command-lines-cmd-exe/Makefile
7271
run-make/long-linker-command-lines/Makefile
7372
run-make/longjmp-across-rust/Makefile

tests/run-make/linkage-attr-on-static/Makefile

-6
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// #[linkage] is a useful attribute which can be applied to statics to allow
2+
// external linkage, something which was not possible before #18890. This test
3+
// checks that using this new feature results in successful compilation and execution.
4+
// See https://github.com/rust-lang/rust/pull/18890
5+
6+
//@ ignore-cross-compile
7+
// Reason: the compiled binary is executed
8+
9+
use run_make_support::{build_native_static_lib, run, rustc};
10+
11+
fn main() {
12+
build_native_static_lib("foo");
13+
rustc().input("bar.rs").run();
14+
run("bar");
15+
}

tests/run-make/pass-non-c-like-enum-to-c/Makefile

-6
This file was deleted.

0 commit comments

Comments
 (0)