diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-06-30 21:29:55 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-06-30 21:29:55 +0000 |
commit | 4df6093ca34b36d7af85069bc9258bb2d91269a7 (patch) | |
tree | a87fbe95520ae79599a78a7ebb1f563fce77eb9a /clang/test/Modules/submodule-visibility.cpp | |
parent | b41e87c534f47e1cb821eb5691ae0520d4ac4143 (diff) | |
download | bcm5719-llvm-4df6093ca34b36d7af85069bc9258bb2d91269a7.tar.gz bcm5719-llvm-4df6093ca34b36d7af85069bc9258bb2d91269a7.zip |
[modules] Make sure macros get made visible in the top-level file if we've got
local submodule visibility enabled; that top-level file might not actually be
the module includes buffer if use of prebuilt modules is disabled.
llvm-svn: 241120
Diffstat (limited to 'clang/test/Modules/submodule-visibility.cpp')
-rw-r--r-- | clang/test/Modules/submodule-visibility.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Modules/submodule-visibility.cpp b/clang/test/Modules/submodule-visibility.cpp index 084f811f231..b2c5fc7ba19 100644 --- a/clang/test/Modules/submodule-visibility.cpp +++ b/clang/test/Modules/submodule-visibility.cpp @@ -20,3 +20,11 @@ #endif int k = n + m; // OK, a and b are visible here. + +#ifndef A +#error A is not defined +#endif + +#ifndef B +#error B is not defined +#endif |