All use declarations need to be directly placed in the top-level module anyway, knowing the submodule doesn't really help. The header that has the offending #include can easily be seen in the diagnostics source location. Review: https://reviews.llvm.org/D43673 llvm-svn: 326023
8 lines
175 B
C
8 lines
175 B
C
#ifndef H_H
|
|
#define H_H
|
|
#include "c.h"
|
|
#include "d.h" // expected-error {{module XH does not depend on a module exporting}}
|
|
#include "h1.h"
|
|
const int h1 = aux_h*c*7*d;
|
|
#endif
|