diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2013-01-25 18:08:53 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2013-01-25 18:08:53 +0000 |
| commit | bd5dfe4511859a5695c6a82097da7722525d4695 (patch) | |
| tree | c27250452daa6860221500ec8ff9cef8cfc37ec5 /clang/test | |
| parent | c7bece56faa5eef1c3d141d0c0b0b68b28a9aed2 (diff) | |
| download | bcm5719-llvm-bd5dfe4511859a5695c6a82097da7722525d4695.tar.gz bcm5719-llvm-bd5dfe4511859a5695c6a82097da7722525d4695.zip | |
[tests] Add a test for -iwithprefix.
- This just scratches the surface, We have pretty horrible test coverage in
this area it seems like, but this at least covers the change in r173410.
llvm-svn: 173464
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Preprocessor/iwithprefix.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/iwithprefix.c b/clang/test/Preprocessor/iwithprefix.c new file mode 100644 index 00000000000..6628ab5b817 --- /dev/null +++ b/clang/test/Preprocessor/iwithprefix.c @@ -0,0 +1,16 @@ +// Check that -iwithprefix falls into the "after" search list. +// +// RUN: rm -rf %t.tmps +// RUN: mkdir -p %t.tmps/first %t.tmps/second +// RUN: %clang_cc1 \ +// RUN: -iprefix %t.tmps/ -iwithprefix second \ +// RUN: -isystem %t.tmps/first -v 2> %t.out +// RUN: FileCheck < %t.out %s + +// CHECK: #include <...> search starts here: +// CHECK: {{.*}}.tmps/first +// CHECK: /usr/include +// CHECK: {{.*}}.tmps/second +// CHECK-NOT: {{.*}}.tmps + + |

