[ELF] Reorder SectionBase/InputSectionBase members
[llvm-project.git] / clang / test / Driver / Wp-args.c
blob587b7b83e4ca6114f53f9f66bedc8cd0301a4318
1 // Check that we extract -MD from '-Wp,-MD,FOO', which is used by a number of
2 // major projects (e.g., FireFox and the Linux Kernel).
4 // RUN: %clang -target i386-pc-linux-gnu -### \
5 // RUN: -Wp,-MD,FOO.d -fsyntax-only %s 2> %t
6 // RUN: FileCheck < %t %s
7 //
8 // CHECK: "-cc1"
9 // CHECK-NOT: -MD
10 // CHECK: "-dependency-file" "FOO.d"
11 // CHECK: "-MT"
13 // PR4062
15 // RUN: %clang -target i386-pc-linux-gnu -### \
16 // RUN: -Wp,-MMD -fsyntax-only %s 2> %t
17 // RUN: FileCheck -check-prefix MMD < %t %s
19 // MMD: "-cc1"
20 // MMD-NOT: -MMD
21 // MMD: "-dependency-file" "Wp-args.d"
23 // Ensure response files are properly expanded with -Wp
24 // RUN: echo -DTEST > %t.rsp
25 // RUN: %clang -Wp,@%t.rsp -E %s | FileCheck -check-prefix RSP %s
27 #ifdef TEST
28 void foo();
29 #endif
31 // RSP: foo()