2 // RUN: %hmaptool write %S/Inputs/nonportable-hmaps/foo.hmap.json %t.hmap
3 // RUN: %clang_cc1 -Eonly \
5 // RUN: -I%S/Inputs/nonportable-hmaps \
8 // foo.hmap contains: Foo/Foo.h -> headers/foo/Foo.h
10 // Header search of "Foo/Foo.h" follows this path:
11 // 1. Look for "Foo/Foo.h".
12 // 2. Find "Foo/Foo.h" in "nonportable-hmaps/foo.hmap".
13 // 3. Look for "headers/foo/Foo.h".
14 // 4. Find "headers/foo/Foo.h" in "nonportable-hmaps".
17 // There is nothing nonportable; -Wnonportable-include-path should not fire.
18 #include "Foo/Foo.h" // expected-no-diagnostics