xref: /minix3/external/bsd/llvm/dist/clang/test/Preprocessor/pr13851.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // Check that -E -M -MF does not cause an "argument unused" error, by adding
2*f4a2713aSLionel Sambuc // -Werror to the clang invocation.  Also check the dependency output, if any.
3*f4a2713aSLionel Sambuc // RUN: %clang -Werror -E -M -MF %t-M.d %s
4*f4a2713aSLionel Sambuc // RUN: FileCheck --input-file=%t-M.d %s
5*f4a2713aSLionel Sambuc // CHECK: pr13851.o:
6*f4a2713aSLionel Sambuc // CHECK: pr13851.c
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc // Check that -E -MM -MF does not cause an "argument unused" error, by adding
9*f4a2713aSLionel Sambuc // -Werror to the clang invocation.  Also check the dependency output, if any.
10*f4a2713aSLionel Sambuc // RUN: %clang -Werror -E -MM -MF %t-MM.d %s
11*f4a2713aSLionel Sambuc // RUN: FileCheck --input-file=%t-MM.d %s
12