| Duncan P. N. Exon Smith | cfc1f6a | 2017-04-27 21:41:51 +0000 | [diff] [blame] | 1 | // 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 |