add test for issue #21335

Fixes #21335.
This commit is contained in:
Andy Russell 2018-11-14 14:51:28 -05:00
parent 6f244c9011
commit 769d7115fe
No known key found for this signature in database
GPG Key ID: BE2221033EDBC374
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
-include ../../run-make-fulldeps/tools.mk
all:
echo 'fn main() {}' | $(BARE_RUSTC) - --out-dir=$(TMPDIR)/random_directory_that_does_not_exist_ir/ --emit=llvm-ir
echo 'fn main() {}' | $(BARE_RUSTC) - --out-dir=$(TMPDIR)/random_directory_that_does_not_exist_bc/ --emit=llvm-bc