2 // RUN: split-file %s %t
5 const char *p
= __FILE__
;
6 //--- include/module.modulemap
7 module
"A" { header
"a.h" }
12 // RUN: %clang_cc1 -I ./include -fmodule-name=A -fmodule-map-file=%t/include/module.modulemap %t/src/tu.cpp -E | FileCheck %s
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 be
16 // found relative to the includer.)
17 // CHECK: const char *p = "./include{{/|\\\\}}a.h"