blob: a8da381347c385bb726cc87cd54df37ce0a1e688 [file] [log] [blame]
Douglas Gregor0adaa882011-12-05 17:28:06 +00001// RUN: rm -rf %t
Douglas Gregorc514a8a2012-01-03 15:21:29 +00002// RUN: %clang_cc1 -fmodule-cache-path %t -fmodules -I %S/Inputs/wildcard-submodule-exports %s -verify
Douglas Gregor0adaa882011-12-05 17:28:06 +00003
4__import_module__ C.One;
5
6void test_C_One() {
7 int *A1_ptr = A1;
8 long *C1_ptr = C1;
9 (void)B1; // expected-error{{use of undeclared identifier 'B1'}}
10}
11
12__import_module__ C.Two;
13
14void test_C_Two() {
15 unsigned int *A2_ptr = A2;
16 unsigned short *B2_ptr = B2;
17 unsigned long *C2_ptr = C2;
18}
19
20__import_module__ B.One;
21
22void test_B_One() {
23 short *B1_ptr = B1;
24}
25