1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %t %t/no-undeclared-includes.c -verify
//--- no-undeclared-includes.c
// expected-no-diagnostics
#include <assert.h>
//--- assert.h
#include <base.h>
//--- base.h
#ifndef base_h
#define base_h
#endif /* base_h */
//--- module.modulemap
module cstd [system] [no_undeclared_includes] {
use base
module assert {
textual header "assert.h"
}
}
module base [system] {
header "base.h"
export *
}
|