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