Skip to content

Commit 55b9323

Browse files
committed
rewrite linkage-attr-on-static to rmake
1 parent f60aec5 commit 55b9323

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-2
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
@@ -105,7 +104,6 @@ run-make/redundant-libs/Makefile
105104
run-make/remap-path-prefix-dwarf/Makefile
106105
run-make/reproducible-build-2/Makefile
107106
run-make/reproducible-build/Makefile
108-
run-make/return-non-c-like-enum-from-c/Makefile
109107
run-make/rlib-format-packed-bundled-libs-2/Makefile
110108
run-make/rlib-format-packed-bundled-libs-3/Makefile
111109
run-make/rlib-format-packed-bundled-libs/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)