1 // UNSUPPORTED: system-windows
3 // RUN: split-file %s %t
6 // RUN: %hmaptool write a.hmap.json hmap
8 // RUN: %clang -Rmodule-build -fmodules -fimplicit-modules -fimplicit-module-maps -fmodule-map-file=module.modulemap -fsyntax-only -I hmap -fmodules-cache-path=%t test.cpp
12 // RUN: split-file %s %t
15 // RUN: sed -e "s|OUTPUTS_DIR|%t|g" b.hmap.json > hmap.json
16 // RUN: %hmaptool write hmap.json hmap
18 // RUN: %clang -Rmodule-build -fmodules -fimplicit-modules -fimplicit-module-maps -fmodule-map-file=module.modulemap -fsyntax-only -I hmap -fmodules-cache-path=%t test.cpp
29 "Before/Mapping.h" : "After/Mapping.h",
30 "After/Mapping.h" : "After/Mapping.h"
38 "Before/Mapping.h" : "OUTPUTS_DIR/After/Mapping.h"
42 //--- module.modulemap
44 header
"After/Mapping.h"
50 // This include will fail if:
51 // 1) modules are't used, as the `FOO` define will propagate into the included
52 // header and trip a `#error`, or
53 // 2) header maps aren't used, as the header name doesn't exist and relies on
54 // the header map to remap it to the real header.
55 #include "Before/Mapping.h"