mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
8a1be9942d
The `rustc_span::FileName` enum already differentiates between real files and "fake" files such as `<anon>`. We do not need to artificially forbid real file names from ending in `>`.
19 lines
684 B
Makefile
19 lines
684 B
Makefile
# ignore-cross-compile we need to execute the binary
|
|
# ignore-windows we create files with < and > in their names
|
|
|
|
include ../tools.mk
|
|
|
|
ifdef RUSTC_BLESS_TEST
|
|
RUSTC_TEST_OP = cp
|
|
else
|
|
RUSTC_TEST_OP = $(DIFF)
|
|
endif
|
|
|
|
all:
|
|
echo '"comes from a file with a name that begins with <"' > "$(TMPDIR)/<leading-lt"
|
|
echo '"comes from a file with a name that ends with >"' > "$(TMPDIR)/trailing-gt>"
|
|
cp silly-file-names.rs "$(TMPDIR)/silly-file-names.rs"
|
|
$(RUSTC) "$(TMPDIR)/silly-file-names.rs" -o "$(TMPDIR)/silly-file-names"
|
|
"$(TMPDIR)/silly-file-names" > "$(TMPDIR)/silly-file-names.run.stdout"
|
|
$(RUSTC_TEST_OP) "$(TMPDIR)/silly-file-names.run.stdout" silly-file-names.run.stdout
|