xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/Wp-args.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // Check that we extract -MD from '-Wp,-MD,FOO', which is used by a number of
2*f4a2713aSLionel Sambuc // major projects (e.g., FireFox and the Linux Kernel).
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc // RUN: %clang -target i386-pc-linux-gnu -### \
5*f4a2713aSLionel Sambuc // RUN:   -Wp,-MD,FOO.d -fsyntax-only %s 2> %t
6*f4a2713aSLionel Sambuc // RUN: FileCheck < %t %s
7*f4a2713aSLionel Sambuc //
8*f4a2713aSLionel Sambuc // CHECK: "-cc1"
9*f4a2713aSLionel Sambuc // CHECK-NOT: -MD
10*f4a2713aSLionel Sambuc // CHECK: "-dependency-file" "FOO.d"
11*f4a2713aSLionel Sambuc // CHECK: "-MT"
12*f4a2713aSLionel Sambuc //
13*f4a2713aSLionel Sambuc // PR4062
14*f4a2713aSLionel Sambuc 
15*f4a2713aSLionel Sambuc // RUN: %clang -target i386-pc-linux-gnu -### \
16*f4a2713aSLionel Sambuc // RUN:   -Wp,-MMD -fsyntax-only %s 2> %t
17*f4a2713aSLionel Sambuc // RUN: FileCheck -check-prefix MMD < %t %s
18*f4a2713aSLionel Sambuc 
19*f4a2713aSLionel Sambuc // MMD: "-cc1"
20*f4a2713aSLionel Sambuc // MMD-NOT: -MMD
21*f4a2713aSLionel Sambuc // MMD: "-dependency-file" "Wp-args.d"
22