Daniel Dunbar | eda3f70 | 2010-06-14 21:37:09 +0000 | [diff] [blame] | 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). |
| 3 | |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 4 | // RUN: %clang --target i386-pc-linux-gnu -### \ |
Daniel Dunbar | eda3f70 | 2010-06-14 21:37:09 +0000 | [diff] [blame] | 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" |
| 12 | // |
| 13 | // PR4062 |