Skip to content

Commit 1147d50

Browse files
committed
ensure rustc does not panic by the test for issue-26092
1 parent 7a5e773 commit 1147d50

File tree

1 file changed

+3
-1
lines changed
  • src/test/run-make-fulldeps/issue-26092

1 file changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
-include ../tools.mk
22

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

0 commit comments

Comments
 (0)