llvm-capstone/clang/test/Preprocessor/pr13851.c
Benjamin Kramer 2715fce524 Allow -MF to be used in combination with -E -M or -E -MM.
Fixes PR13851. Patch by Dimitry Andric!

llvm-svn: 164717
2012-09-26 19:01:49 +00:00

12 lines
526 B
C

// 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