diff options
Diffstat (limited to 'test/Modules/filename.cpp')
-rw-r--r-- | test/Modules/filename.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Modules/filename.cpp b/test/Modules/filename.cpp new file mode 100644 index 0000000..66891a0 --- /dev/null +++ b/test/Modules/filename.cpp @@ -0,0 +1,9 @@ +// RUN: cd %S +// RUN: %clang_cc1 -I. -fmodule-maps -fmodule-name=A -fmodule-map-file=%S/Inputs/filename/module.map %s -E | FileCheck %s +// REQUIRES: shell + +#include "Inputs/filename/a.h" + +// Make sure that headers that are referenced by module maps have __FILE__ +// reflect the include path they were found with. +// CHECK: const char *p = "./Inputs/filename/a.h" |