xref: /minix3/external/bsd/llvm/dist/clang/test/Preprocessor/headermap-rel2.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // This uses a headermap with this entry:
2*0a6a1f1dSLionel Sambuc //   someheader.h -> Product/someheader.h
3*0a6a1f1dSLionel Sambuc 
4*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -v -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isystem %S/Inputs/headermap-rel2/system/usr/include -I %S/Inputs/headermap-rel2 -H
5*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only %s -iquote %S/Inputs/headermap-rel2/project-headers.hmap -isystem %S/Inputs/headermap-rel2/system/usr/include -I %S/Inputs/headermap-rel2 -H 2> %t.out
6*0a6a1f1dSLionel Sambuc // RUN: FileCheck %s -input-file %t.out
7*0a6a1f1dSLionel Sambuc 
8*0a6a1f1dSLionel Sambuc // CHECK: Product/someheader.h
9*0a6a1f1dSLionel Sambuc // CHECK: system/usr/include{{[/\\]+}}someheader.h
10*0a6a1f1dSLionel Sambuc // CHECK: system/usr/include{{[/\\]+}}someheader.h
11*0a6a1f1dSLionel Sambuc 
12*0a6a1f1dSLionel Sambuc #include "someheader.h"
13*0a6a1f1dSLionel Sambuc #include <someheader.h>
14*0a6a1f1dSLionel Sambuc #include <someheader.h>
15