summary refs log tree commit diff
path: root/src/test/run-make/unicode-input/Makefile
blob: f834a85cdcc741c0cc496fa1d55bffd7a3f79974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-include ../tools.mk

# This test attempts to run rustc itself from the compiled binary; but
# that means that you need to set the LD_LIBRARY_PATH for rustc itself
# while running multiple_files, and that won't work for stage1.

# FIXME ignore windows
ifndef IS_WINDOWS
ifeq ($(RUST_BUILD_STAGE),1)
DOTEST=
else
DOTEST=dotest
endif
endif

all: $(DOTEST)

dotest:
	# check that we don't ICE on unicode input, issue #11178
	$(RUSTC) multiple_files.rs
	$(call RUN,multiple_files)  "$(RUSTC)" "$(TMPDIR)"

	# check that our multibyte-ident spans are (approximately) the
	# correct length. issue #8706
	$(RUSTC) span_length.rs
	$(call RUN,span_length) "$(RUSTC)" "$(TMPDIR)"