brintos

brintos / llvm-project-archived public Read only

0
0
Text · 766 B · 587b7b8 Raw
32 lines · c
1// Check that we extract -MD from '-Wp,-MD,FOO', which is used by a number of2// major projects (e.g., FireFox and the Linux Kernel).3 4// RUN: %clang -target i386-pc-linux-gnu -### \5// RUN:   -Wp,-MD,FOO.d -fsyntax-only %s 2> %t6// RUN: FileCheck < %t %s7//8// CHECK: "-cc1"9// CHECK-NOT: -MD10// CHECK: "-dependency-file" "FOO.d"11// CHECK: "-MT"12//13// PR406214 15// RUN: %clang -target i386-pc-linux-gnu -### \16// RUN:   -Wp,-MMD -fsyntax-only %s 2> %t17// RUN: FileCheck -check-prefix MMD < %t %s18 19// MMD: "-cc1"20// MMD-NOT: -MMD21// MMD: "-dependency-file" "Wp-args.d"22 23// Ensure response files are properly expanded with -Wp24// RUN: echo -DTEST > %t.rsp25// RUN: %clang -Wp,@%t.rsp -E %s | FileCheck -check-prefix RSP %s26 27#ifdef TEST28void foo();29#endif30 31// RSP: foo()32