brintos

brintos / llvm-project-archived public Read only

0
0
Text · 562 B · 7c42a7e Raw
18 lines · cpp
1// RUN: rm -rf %t2// RUN: split-file %s %t3 4//--- include/a.h5const char *p = __FILE__;6//--- include/module.modulemap7module "A" { header "a.h" }8//--- src/tu.cpp9#include "a.h"10 11// RUN: cd %t12// RUN: %clang_cc1 -I ./include -fmodule-name=A -fmodule-map-file=%t/include/module.modulemap %t/src/tu.cpp -E | FileCheck %s13 14// Make sure that headers that are referenced by module maps have __FILE__15// reflect the include path they were found with. (We make sure they cannot be16// found relative to the includer.)17// CHECK: const char *p = "./include{{/|\\\\}}a.h"18