From 4df6093ca34b36d7af85069bc9258bb2d91269a7 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 30 Jun 2015 21:29:55 +0000 Subject: [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 --- clang/test/Modules/submodule-visibility.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'clang/test/Modules/submodule-visibility.cpp') 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 -- cgit v1.2.3