diff options
Diffstat (limited to 'test/Preprocessor/headermap-rel2.c')
-rw-r--r-- | test/Preprocessor/headermap-rel2.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Preprocessor/headermap-rel2.c b/test/Preprocessor/headermap-rel2.c new file mode 100644 index 000000000000..430854de0679 --- /dev/null +++ b/test/Preprocessor/headermap-rel2.c @@ -0,0 +1,14 @@ +// This uses a headermap with this entry: +// someheader.h -> Product/someheader.h + +// RUN: %clang_cc1 -triple x86_64-apple-darwin13 -v -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isysroot %S/Inputs/headermap-rel2/system -I %S/Inputs/headermap-rel2 -H +// RUN: %clang_cc1 -triple x86_64-apple-darwin13 -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isysroot %S/Inputs/headermap-rel2/system -I %S/Inputs/headermap-rel2 -H 2> %t.out +// RUN: FileCheck %s -input-file %t.out + +// CHECK: Product/someheader.h +// CHECK: system/usr/include{{[/\\]+}}someheader.h +// CHECK: system/usr/include{{[/\\]+}}someheader.h + +#include "someheader.h" +#include <someheader.h> +#include <someheader.h> |