summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/headermap-rel2.c
blob: d61f3385b22d1c0e4a3edcde413cf8b2481fb488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// This uses a headermap with this entry:
//   someheader.h -> Product/someheader.h

// 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
// 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
// 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>