Skip to content

Commit

Permalink
ensure rustc does not panic by the test for issue-26092
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ysk committed Jul 3, 2022
1 parent 7a5e773 commit 1147d50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/run-make-fulldeps/issue-26092/Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1147d50

Please sign in to comment.