Douglas Gregor | 0adaa88 | 2011-12-05 17:28:06 +0000 | [diff] [blame^] | 1 | // 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 | |
| 6 | void 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 | |
| 14 | void 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 | |
| 22 | void test_B_One() { |
| 23 | short *B1_ptr = B1; |
| 24 | } |
| 25 | |