[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / no-undeclared-includes.c
blob83a654f6ed775398152944cb1a331ebac446a0c3
1 // RUN: rm -rf %t
2 // RUN: split-file %s %t
3 // RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %t %t/no-undeclared-includes.c -verify
5 //--- no-undeclared-includes.c
6 // expected-no-diagnostics
7 #include <assert.h>
9 //--- assert.h
10 #include <base.h>
12 //--- base.h
13 #ifndef base_h
14 #define base_h
18 #endif /* base_h */
20 //--- module.modulemap
21 module cstd [system] [no_undeclared_includes] {
22 use base
23 module assert {
24 textual header "assert.h"
28 module base [system] {
29 header "base.h"
30 export *