Skip to content

Commit 760b505

Browse files
committed
Rewrite static-unwinding as rmake.rs
1 parent ddba1dc commit 760b505

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ run-make/stable-symbol-names/Makefile
264264
run-make/static-dylib-by-default/Makefile
265265
run-make/static-extern-type/Makefile
266266
run-make/static-pie/Makefile
267-
run-make/static-unwinding/Makefile
268267
run-make/staticlib-blank-lib/Makefile
269268
run-make/staticlib-dylib-linkage/Makefile
270269
run-make/std-core-cycle/Makefile

tests/run-make/static-unwinding/Makefile

-8
This file was deleted.
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// During unwinding, an implementation of Drop is possible to clean up resources.
2+
// This test implements drop in both a main function and its static library.
3+
// If the test succeeds, a Rust program being a static library does not affect Drop implementations.
4+
// See https://github.com/rust-lang/rust/issues/10434
5+
6+
//@ ignore-cross-compile
7+
//@ needs-unwind
8+
9+
use run_make_support::{run, rustc};
10+
11+
fn main() {
12+
rustc().input("lib.rs").run();
13+
rustc().input("main.rs").run();
14+
run("main");
15+
}

0 commit comments

Comments
 (0)