blob: fc958e7e5e3f03d007f2ab8f0c24de5d0cb570a4 [file] [log] [blame]
Duncan P. N. Exon Smithcfc1f6a2017-04-27 21:41:51 +00001// RUN: %clang_cc1 -Eonly \
2// RUN: -I%S/Inputs/nonportable-hmaps/foo.hmap \
3// RUN: -I%S/Inputs/nonportable-hmaps \
4// RUN: %s -verify
5//
6// foo.hmap contains: Foo/Foo.h -> headers/foo/Foo.h
7//
8// Header search of "Foo/Foo.h" follows this path:
9// 1. Look for "Foo/Foo.h".
10// 2. Find "Foo/Foo.h" in "nonportable-hmaps/foo.hmap".
11// 3. Look for "headers/foo/Foo.h".
12// 4. Find "headers/foo/Foo.h" in "nonportable-hmaps".
13// 5. Return.
14//
15// There is nothing nonportable; -Wnonportable-include-path should not fire.
16#include "Foo/Foo.h" // expected-no-diagnostics