Skip to content

Commit bbad12f

Browse files
committed
rewrite linkage-attr-on-static to rmake
1 parent abc3f26 commit bbad12f

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

Diff for: src/tools/tidy/src/allowed_run_make_makefiles.txt

-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ run-make/libtest-thread-limit/Makefile
6060
run-make/link-cfg/Makefile
6161
run-make/link-framework/Makefile
6262
run-make/link-path-order/Makefile
63-
run-make/linkage-attr-on-static/Makefile
6463
run-make/long-linker-command-lines-cmd-exe/Makefile
6564
run-make/long-linker-command-lines/Makefile
6665
run-make/longjmp-across-rust/Makefile
@@ -93,7 +92,6 @@ run-make/redundant-libs/Makefile
9392
run-make/remap-path-prefix-dwarf/Makefile
9493
run-make/reproducible-build-2/Makefile
9594
run-make/reproducible-build/Makefile
96-
run-make/return-non-c-like-enum-from-c/Makefile
9795
run-make/rlib-format-packed-bundled-libs-2/Makefile
9896
run-make/rlib-format-packed-bundled-libs-3/Makefile
9997
run-make/rlib-format-packed-bundled-libs/Makefile

Diff for: tests/run-make/linkage-attr-on-static/Makefile

-6
This file was deleted.

Diff for: tests/run-make/linkage-attr-on-static/rmake.rs

+15
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+
}

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

-6
This file was deleted.

0 commit comments

Comments
 (0)