xref: /llvm-project/clang/test/Modules/has_include_non_modular.c (revision bdb309c5fd4030ae6ff9d5114e3532d45a98a183)
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
15