Home | History | Annotate | Download | only in Modules
      1 // Note: inside the module. expected-note{{'nested_umbrella_a' declared here}}
      2 
      3 // RUN: rm -rf %t
      4 // RUN: %clang_cc1 -x objective-c -fmodules-cache-path=%t -fmodules -I %S/Inputs/normal-module-map %s -verify
      5 #include "Umbrella/umbrella_sub.h"
      6 
      7 int getUmbrella() {
      8   return umbrella + umbrella_sub;
      9 }
     10 
     11 @import Umbrella2;
     12 
     13 #include "a1.h"
     14 #include "b1.h"
     15 #include "nested/nested2.h"
     16 
     17 int test() {
     18   return a1 + b1 + nested2;
     19 }
     20 
     21 @import nested_umbrella.a;
     22 
     23 int testNestedUmbrellaA() {
     24   return nested_umbrella_a;
     25 }
     26 
     27 int testNestedUmbrellaBFail() {
     28   return nested_umbrella_b; // expected-error{{use of undeclared identifier 'nested_umbrella_b'; did you mean 'nested_umbrella_a'?}}
     29 }
     30 
     31 @import nested_umbrella.b;
     32 
     33 int testNestedUmbrellaB() {
     34   return nested_umbrella_b;
     35 }
     36 
     37 @import nested_umbrella.a_extras;
     38 
     39 @import nested_umbrella._1;
     40 
     41 @import nested_umbrella.decltype_;
     42 
     43 int testSanitizedName() {
     44   return extra_a + one + decltype_val;
     45 }
     46