1// RUN: rm -rf %t 2// RUN: %clang_cc1 -x objective-c++ -fmodule-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@__experimental_modules_import C.One; 6 7void 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@__experimental_modules_import C.Two; 14 15void test_C_Two() { 16 unsigned int *A2_ptr = A2; 17 unsigned short *B2_ptr = B2; 18 unsigned long *C2_ptr = C2; 19} 20 21@__experimental_modules_import B.One; 22 23void test_B_One() { 24 short *B1_ptr = B1; 25} 26 27