diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-01-08 22:36:45 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-01-08 22:36:45 +0000 |
commit | f7aeda1f07dd46ea74efb2bc1d9f3aa33536991d (patch) | |
tree | 601db3e5f7a5b9854501b8e3deb446d3c7bafb64 /clang/test/Modules/modular_maps.cpp | |
parent | 9d49638f4466f0000fccd2570cde04e11e560fcb (diff) | |
download | bcm5719-llvm-f7aeda1f07dd46ea74efb2bc1d9f3aa33536991d.tar.gz bcm5719-llvm-f7aeda1f07dd46ea74efb2bc1d9f3aa33536991d.zip |
[modules] Make sure we always include the contents of private headers when
building a module. Prior to this change, the private header's content would
only be included if the header were included by another header in the same
module. If not (if the private header is only used by the .cc files of the
module, or is included from outside the module via -Wno-private-header),
a #include of that file would be silently ignored.
llvm-svn: 257222
Diffstat (limited to 'clang/test/Modules/modular_maps.cpp')
-rw-r--r-- | clang/test/Modules/modular_maps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Modules/modular_maps.cpp b/clang/test/Modules/modular_maps.cpp index 3b6afc7552d..fc44131d458 100644 --- a/clang/test/Modules/modular_maps.cpp +++ b/clang/test/Modules/modular_maps.cpp @@ -16,4 +16,4 @@ #include "b.h" // expected-error {{private header}} @import C; const int v = a + c + x; -const int val = a + b + c + x; // expected-error {{undeclared identifier}} +const int val = a + b + c + x; |