1 2 3 4 5 6 7 8 9 10 11 12 13 14
// RUN: rm -rf %t // RUN: split-file %s %t //--- module.modulemap module Mod { header "mod.h" } //--- mod.h #if __has_include("textual.h") #endif //--- textual.h //--- tu.c #include "mod.h" // RUN: %clang -fsyntax-only %t/tu.c -fmodules -fmodules-cache-path=%t/cache -Werror=non-modular-include-in-module