summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/save-analysis-rfc2126/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make-fulldeps/save-analysis-rfc2126/Makefile')
-rw-r--r--tests/run-make-fulldeps/save-analysis-rfc2126/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run-make-fulldeps/save-analysis-rfc2126/Makefile b/tests/run-make-fulldeps/save-analysis-rfc2126/Makefile
new file mode 100644
index 000000000..30f57034b
--- /dev/null
+++ b/tests/run-make-fulldeps/save-analysis-rfc2126/Makefile
@@ -0,0 +1,8 @@
+include ../tools.mk
+
+all: extern_absolute_paths.rs krate2
+ $(RUSTC) extern_absolute_paths.rs -Zsave-analysis --edition=2018 --extern krate2
+ cat $(TMPDIR)/save-analysis/extern_absolute_paths.json | "$(PYTHON)" validate_json.py
+
+krate2: krate2.rs
+ $(RUSTC) $<