2023-06-07 21:00:56 +01:00
|
|
|
# only-linux
|
|
|
|
#
|
|
|
|
# This test ensures that `panic=abort` code (without `C-unwind`, that is) should not have any
|
|
|
|
# unwinding related `.eh_frame` sections emitted.
|
|
|
|
|
|
|
|
include ../tools.mk
|
|
|
|
|
|
|
|
all:
|
2023-06-28 16:05:17 +01:00
|
|
|
$(RUSTC) foo.rs --crate-type=lib --emit=obj=$(TMPDIR)/foo.o -Cpanic=abort --edition 2021 -Z validate-mir
|
2023-06-07 21:00:56 +01:00
|
|
|
objdump --dwarf=frames $(TMPDIR)/foo.o | $(CGREP) -v 'DW_CFA'
|