| module M { header "m.h" } |
| //--- overlay.json.template |
| "case-sensitive": "false", |
| "external-contents": "DIR/m-real.h", |
| // RUN: sed -e "s|DIR|%/t|g" %t/overlay.json.template > %t/overlay.json |
| // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache \ |
| // RUN: -ivfsoverlay %t/overlay.json -dependency-file %t/tu.d -MT %t/tu.o -fsyntax-only %t/tu.c |
| // RUN: FileCheck %s --input-file=%t/tu.d |
| // CHECK-NEXT: {{.*}}tu.c \ |
| // CHECK-NEXT: {{.*}}module.modulemap \ |
| // CHECK-NEXT: {{.*}}m-real.h |