llvm-project/clang/test/Modules/subdirectory-module-maps-working-dir.m
Volodymyr Sapsai df741b2220
[HeaderSearch] Make a test independent of the local environment. (#100011)
Don't ask the driver to inspect the local environment but use `cc1`
directly.
2024-07-23 11:26:25 -07:00

14 lines
355 B
Objective-C

// RUN: rm -rf %t
// RUN: %clang_cc1 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
// RUN: -working-directory %S/Inputs \
// RUN: -I subdirectory-module-maps-working-dir \
// RUN: %s -Werror=implicit-function-declaration -verify
@import ModuleInSubdir;
void foo(void) {
int x = bar();
}
// expected-no-diagnostics