[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / has_include_non_modular.c
blob2e1a06bdc6e4a0d03446e918197de46dd12fa052
1 // RUN: rm -rf %t
2 // RUN: split-file %s %t
4 //--- module.modulemap
5 module Mod { header "mod.h" }
6 //--- mod.h
7 #if __has_include("textual.h")
8 #endif
9 //--- textual.h
11 //--- tu.c
12 #include "mod.h"
14 // RUN: %clang -fsyntax-only %t/tu.c -fmodules -fmodules-cache-path=%t/cache -Werror=non-modular-include-in-module