1 // RUN: rm -rf %t 2 // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -I %S/Inputs/wildcard-submodule-exports %s -verify 3 // FIXME: When we have a syntax for modules in C++, use that. 4 5 @import C.One; 6 7 void test_C_One() { 8 int *A1_ptr = A1; 9 long *C1_ptr = C1; 10 (void)B1; // expected-error{{use of undeclared identifier 'B1'}} 11 } 12 13 @import C.Two; 14 15 void test_C_Two() { 16 unsigned int *A2_ptr = A2; 17 unsigned short *B2_ptr = B2; 18 unsigned long *C2_ptr = C2; 19 } 20 21 @import B.One; 22 23 void test_B_One() { 24 short *B1_ptr = B1; 25 } 26 27