diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/run-make-fulldeps/allow-non-lint-warnings-cmdline/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/run-make-fulldeps/allow-non-lint-warnings-cmdline/Makefile b/src/test/run-make-fulldeps/allow-non-lint-warnings-cmdline/Makefile new file mode 100644 index 000000000..c14006cc2 --- /dev/null +++ b/src/test/run-make-fulldeps/allow-non-lint-warnings-cmdline/Makefile @@ -0,0 +1,11 @@ +-include ../tools.mk + +# Test that -A warnings makes the 'empty trait list for derive' warning go away +OUT=$(shell $(RUSTC) foo.rs -A warnings 2>&1 | grep "warning" ) + +all: foo + test -z '$(OUT)' + +# This is just to make sure the above command actually succeeds +foo: + $(RUSTC) foo.rs -A warnings |