xref: /llvm-project/clang/test/Preprocessor/headermap-rel2.c (revision bcda1269c4c4d5d19d2be425c0a52d19fe09f146)
1 // RUN: rm -f %t.hmap
2 // RUN: %hmaptool write %S/Inputs/headermap-rel2/project-headers.hmap.json %t.hmap
3 
4 // RUN: %clang -fsyntax-only %s -iquote %t.hmap -isystem %S/Inputs/headermap-rel2/system/usr/include -I %S/Inputs/headermap-rel2 -H 2> %t.out
5 // RUN: FileCheck %s -input-file %t.out
6 
7 // RUN: env CC_PRINT_HEADERS=1 %clang -fsyntax-only %s -iquote %t.hmap -isystem %S/Inputs/headermap-rel2/system/usr/include -I %S/Inputs/headermap-rel2 2> %t.out
8 // RUN: FileCheck %s -input-file %t.out
9 
10 // CHECK: Product/someheader.h
11 // CHECK: system/usr/include{{[/\\]+}}someheader.h
12 // CHECK: system/usr/include{{[/\\]+}}someheader.h
13 
14 #include "someheader.h"
15 #include <someheader.h>
16 #include <someheader.h>
17