32 lines · c
1// RUN: rm -rf %t2// RUN: split-file %s %t3// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %t %t/no-undeclared-includes.c -verify4 5//--- no-undeclared-includes.c6// expected-no-diagnostics7#include <assert.h>8 9//--- assert.h10#include <base.h>11 12//--- base.h13#ifndef base_h14#define base_h15 16 17 18#endif /* base_h */19 20//--- module.modulemap21module cstd [system] [no_undeclared_includes] {22 use base23 module assert {24 textual header "assert.h"25 }26}27 28module base [system] {29 header "base.h"30 export *31}32