blob: b892acbe59841444b9b3984adff557600073d3f9 [file] [log] [blame]
Douglas Gregor0adaa882011-12-05 17:28:06 +00001// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodule-cache-path %t -fauto-module-import -I %S/Inputs/wildcard-submodule-exports %s -verify
3
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