summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-09-26 19:01:49 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-09-26 19:01:49 +0000
commit2715fce5244c2058aa02d45bda262904e7efa1ad (patch)
tree418c159d2baa3e203d515dbedea64a4002c0a912 /clang/test/Preprocessor
parent9802f9fb2a64df1c27251a3284394c2748122128 (diff)
downloadbcm5719-llvm-2715fce5244c2058aa02d45bda262904e7efa1ad.tar.gz
bcm5719-llvm-2715fce5244c2058aa02d45bda262904e7efa1ad.zip
Allow -MF to be used in combination with -E -M or -E -MM.
Fixes PR13851. Patch by Dimitry Andric! llvm-svn: 164717
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r--clang/test/Preprocessor/pr13851.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/pr13851.c b/clang/test/Preprocessor/pr13851.c
new file mode 100644
index 00000000000..537594d28ff
--- /dev/null
+++ b/clang/test/Preprocessor/pr13851.c
@@ -0,0 +1,11 @@
+// Check that -E -M -MF does not cause an "argument unused" error, by adding
+// -Werror to the clang invocation. Also check the dependency output, if any.
+// RUN: %clang -Werror -E -M -MF %t-M.d %s
+// RUN: FileCheck --input-file=%t-M.d %s
+// CHECK: pr13851.o:
+// CHECK: pr13851.c
+
+// Check that -E -MM -MF does not cause an "argument unused" error, by adding
+// -Werror to the clang invocation. Also check the dependency output, if any.
+// RUN: %clang -Werror -E -MM -MF %t-MM.d %s
+// RUN: FileCheck --input-file=%t-MM.d %s
OpenPOWER on IntegriCloud