Skip to content

Commit b1433d3

Browse files
committed
rewrite forced-unwind-terminate-pof to rmake
1 parent d1e8c6b commit b1433d3

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ run-make/extern-multiple-copies/Makefile
5151
run-make/extern-multiple-copies2/Makefile
5252
run-make/extra-filename-with-temp-outputs/Makefile
5353
run-make/fmt-write-bloat/Makefile
54-
run-make/forced-unwind-terminate-pof/Makefile
5554
run-make/foreign-double-unwind/Makefile
5655
run-make/foreign-exceptions/Makefile
5756
run-make/foreign-rust-exceptions/Makefile

tests/run-make/forced-unwind-terminate-pof/Makefile

-9
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// During a forced unwind, crossing the non-Plain Old Frame
2+
// would define the forced unwind as undefined behaviour, and
3+
// immediately abort the unwinding process. This test checks
4+
// that the forced unwinding takes precedence.
5+
// See https://github.com/rust-lang/rust/issues/101469
6+
7+
//@ ignore-cross-compile
8+
//FIXME(Oneirical): Test this on msvc before bringing back only-linux
9+
10+
use run_make_support::{run, rustc};
11+
12+
fn main() {
13+
rustc().input("foo.rs").run();
14+
run("foo").assert_stdout_not_contains("cannot unwind");
15+
}

0 commit comments

Comments
 (0)