mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

Include search paths can be relative paths. The loadSubdirectoryModuleMaps function should account for that and respect the -working-directory parameter given to Clang. rdar://46045849 Differential Revision: https://reviews.llvm.org/D54503 llvm-svn: 346822
14 lines
332 B
Objective-C
14 lines
332 B
Objective-C
// RUN: rm -rf %t
|
|
// RUN: %clang -fsyntax-only -fmodules -fmodules-cache-path=%t \
|
|
// RUN: -working-directory %S/Inputs \
|
|
// RUN: -I subdirectory-module-maps-working-dir \
|
|
// RUN: %s -Werror=implicit-function-declaration -Xclang -verify
|
|
|
|
@import ModuleInSubdir;
|
|
|
|
void foo() {
|
|
int x = bar();
|
|
}
|
|
|
|
// expected-no-diagnostics
|