xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/filename.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: cd %S
2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -I. -fmodule-maps -fmodule-name=A  -fmodule-map-file=%S/Inputs/filename/module.map %s -E | FileCheck %s
3*0a6a1f1dSLionel Sambuc // REQUIRES: shell
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc #include "Inputs/filename/a.h"
6*0a6a1f1dSLionel Sambuc 
7*0a6a1f1dSLionel Sambuc // Make sure that headers that are referenced by module maps have __FILE__
8*0a6a1f1dSLionel Sambuc // reflect the include path they were found with.
9*0a6a1f1dSLionel Sambuc // CHECK: const char *p = "./Inputs/filename/a.h"
10