Add test for remap-from in the form of $PWD/trailing

This commit is contained in:
Andy Wang 2021-05-15 19:35:10 +01:00
parent 94ecdfd115
commit b76ce69606
No known key found for this signature in database
GPG key ID: 181B49F9F38F3374
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,6 @@
-include ../tools.mk
# Checks if remapping works if the remap-from string contains path to the working directory plus more
all:
$(RUSTC) --remap-path-prefix $$PWD/auxiliary=/the/aux --crate-type=lib --emit=metadata auxiliary/lib.rs
! grep "$$PWD/auxiliary" $(TMPDIR)/liblib.rmeta || exit 1

View file

@ -0,0 +1,3 @@
fn lib() {
panic!("calm");
}