diff options
Diffstat (limited to 'test/Modules/normal-module-map.cpp')
-rw-r--r-- | test/Modules/normal-module-map.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Modules/normal-module-map.cpp b/test/Modules/normal-module-map.cpp index 19294950d4..5a7d549053 100644 --- a/test/Modules/normal-module-map.cpp +++ b/test/Modules/normal-module-map.cpp @@ -1,3 +1,5 @@ +// Note: inside the module. expected-note{{ 'nested_umbrella_a' declared here}} + // RUN: rm -rf %t // RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/normal-module-map %s -verify #include "Umbrella/umbrella_sub.h" @@ -15,3 +17,19 @@ __import_module__ Umbrella2; int test() { return a1 + b1 + nested2; } + +__import_module__ nested_umbrella.a; + +int testNestedUmbrellaA() { + return nested_umbrella_a; +} + +int testNestedUmbrellaBFail() { + return nested_umbrella_b; // expected-error{{use of undeclared identifier 'nested_umbrella_b'; did you mean 'nested_umbrella_a'?}} +} + +__import_module__ nested_umbrella.b; + +int testNestedUmbrellaB() { + return nested_umbrella_b; +} |