Files
clang-p2996/clang/test/Modules/filename.cpp
Reid Kleckner acbd23adf1 Remove shell requirements from tests that use 'cd'
Modules and Tooling tests in particular tend to want to change the cwd,
so we were missing test coverage in this area on Windows. It should now
be easier to write such portable tests.

llvm-svn: 231029
2015-03-02 22:42:58 +00:00

9 lines
345 B
C++

// RUN: cd %S
// RUN: %clang_cc1 -I. -fmodule-maps -fmodule-name=A -fmodule-map-file=%S/Inputs/filename/module.map %s -E | FileCheck %s
#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"