ensure rustc does not panic by the test for issue-26092

This commit is contained in:
Yoshiki Matsuda 2022-07-03 23:02:55 +09:00
parent 7a5e773dc2
commit 1147d50050

View File

@ -1,4 +1,6 @@
-include ../tools.mk
# This test ensures that rustc does not panic with `-o ""` option.
all:
$(RUSTC) -o "" blank.rs 2>&1 | $(CGREP) -i 'No such file or directory'
$(RUSTC) -o "" blank.rs 2>&1 | $(CGREP) -i 'panic' && exit 1 || exit 0