diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Preprocessor/Inputs/nonportable-hmaps/foo.hmap | bin | 0 -> 102 bytes | |||
-rw-r--r-- | clang/test/Preprocessor/Inputs/nonportable-hmaps/headers/foo/Foo.h | 0 | ||||
-rw-r--r-- | clang/test/Preprocessor/nonportable-include-with-hmap.c | 16 |
3 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/Inputs/nonportable-hmaps/foo.hmap b/clang/test/Preprocessor/Inputs/nonportable-hmaps/foo.hmap Binary files differnew file mode 100644 index 00000000000..9036f208711 --- /dev/null +++ b/clang/test/Preprocessor/Inputs/nonportable-hmaps/foo.hmap diff --git a/clang/test/Preprocessor/Inputs/nonportable-hmaps/headers/foo/Foo.h b/clang/test/Preprocessor/Inputs/nonportable-hmaps/headers/foo/Foo.h new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/clang/test/Preprocessor/Inputs/nonportable-hmaps/headers/foo/Foo.h diff --git a/clang/test/Preprocessor/nonportable-include-with-hmap.c b/clang/test/Preprocessor/nonportable-include-with-hmap.c new file mode 100644 index 00000000000..fc958e7e5e3 --- /dev/null +++ b/clang/test/Preprocessor/nonportable-include-with-hmap.c @@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -Eonly \ +// RUN: -I%S/Inputs/nonportable-hmaps/foo.hmap \ +// RUN: -I%S/Inputs/nonportable-hmaps \ +// RUN: %s -verify +// +// foo.hmap contains: Foo/Foo.h -> headers/foo/Foo.h +// +// Header search of "Foo/Foo.h" follows this path: +// 1. Look for "Foo/Foo.h". +// 2. Find "Foo/Foo.h" in "nonportable-hmaps/foo.hmap". +// 3. Look for "headers/foo/Foo.h". +// 4. Find "headers/foo/Foo.h" in "nonportable-hmaps". +// 5. Return. +// +// There is nothing nonportable; -Wnonportable-include-path should not fire. +#include "Foo/Foo.h" // expected-no-diagnostics |