This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-11
lines changed
tests/run-make/panic-abort-eh_frame Expand file tree Collapse file tree 3 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ run-make/no-alloc-shim/Makefile
9595run-make/no-builtins-attribute/Makefile
9696run-make/no-duplicate-libs/Makefile
9797run-make/obey-crate-type-flag/Makefile
98- run-make/panic-abort-eh_frame/Makefile
9998run-make/pass-non-c-like-enum-to-c/Makefile
10099run-make/pdb-buildinfo-cl-cmd/Makefile
101100run-make/pgo-gen-lto/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // An `.eh_frame` section in an object file is a symptom of an UnwindAction::Terminate
2+ // being inserted, useful for determining whether or not unwinding is necessary.
3+ // This is useless when panics would NEVER unwind due to -C panic=abort. This section should
4+ // therefore never appear in the emit file of a -C panic=abort compilation, and this test
5+ // checks that this is respected.
6+ // See https://github.com/rust-lang/rust/pull/112403
7+
8+ // FIXME(Oneirical): try it on more than only-linux!
9+
10+ use run_make_support:: { llvm_objdump, rustc} ;
11+
12+ fn main ( ) {
13+ rustc ( )
14+ . input ( "foo.rs" )
15+ . crate_type ( "lib" )
16+ . emit ( "obj=foo.o" )
17+ . panic ( "abort" )
18+ . edition ( "2021" )
19+ . arg ( "-Zvalidate-mir" )
20+ . run ( ) ;
21+ llvm_objdump ( ) . arg ( "--dwarf=frames" ) . input ( "foo.o" ) . run ( ) . assert_stdout_not_contains ( "DW_CFA" ) ;
22+ }
You can’t perform that action at this time.
0 commit comments