brintos

brintos / llvm-project-archived public Read only

0
0
Text · 756 B · 83faa34 Raw
33 lines · c
1// RUN: rm -rf %t2// RUN: split-file %s %t3 4//--- module.modulemap5module M { header "m.h" }6 7//--- m-real.h8 9//--- overlay.json.template10{11  "version": 0,12  "case-sensitive": "false",13  "roots": [14    {15      "external-contents": "DIR/m-real.h",16      "name": "DIR/m.h",17      "type": "file"18    }19  ]20}21 22//--- tu.c23#include "m.h"24 25// RUN: sed -e "s|DIR|%/t|g" %t/overlay.json.template > %t/overlay.json26// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache \27// RUN:   -ivfsoverlay %t/overlay.json -dependency-file %t/tu.d -MT %t/tu.o -fsyntax-only %t/tu.c28// RUN: FileCheck %s --input-file=%t/tu.d29// CHECK:      {{.*}}tu.o: \30// CHECK-NEXT: {{.*}}tu.c \31// CHECK-NEXT: {{.*}}module.modulemap \32// CHECK-NEXT: {{.*}}m-real.h33