summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/separate-link-fail/Makefile
blob: bfd18fbf972d62e5eec8c4cd3c432456d0bfb7bb (plain)
1
2
3
4
5
6
7
include ../tools.mk

all:
	echo 'fn main(){}' > $(TMPDIR)/main.rs
	# Make sure that this fails
	! $(RUSTC) -Z link-only $(TMPDIR)/main.rs 2> $(TMPDIR)/stderr.txt
	$(CGREP) "The input does not look like a .rlink file" < $(TMPDIR)/stderr.txt