mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 12:13:43 +00:00
11 lines
355 B
Makefile
11 lines
355 B
Makefile
# 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:
|
|
$(RUSTC) foo.rs --crate-type=lib --emit=obj=$(TMPDIR)/foo.o -Cpanic=abort --edition 2021 -Z validate-mir
|
|
objdump --dwarf=frames $(TMPDIR)/foo.o | $(CGREP) -v 'DW_CFA'
|