Debian Codegraph @

clang/test/Modules/modulemap-allow-subdirectory-search.m

raw
1 // RUN: rm -rf %t
2 // RUN: split-file %s %t
3
4 // RUN: %clang_cc1 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache -I %t/include %t/test.m
5 // RUN: %clang_cc1 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache -I %t/include %t/test.m -fmodulemap-allow-subdirectory-search
6 // RUN: not %clang_cc1 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache -I %t/include %t/test.m -fno-modulemap-allow-subdirectory-search
7
8 //--- include/UnrelatedName/Header.h
9 // empty
10
11 //--- include/UnrelatedName/module.modulemap
12 module UsefulCode {
13 header "Header.h"
14 export *
15 }
16
17 //--- test.m
18 @import UsefulCode;