blob: 6b4f02c6f2366650e99aaff753baea9e44d66f4f [file] [log] [blame]
Douglas Gregor0adaa882011-12-05 17:28:06 +00001// RUN: rm -rf %t
Douglas Gregorc13a34b2012-01-03 19:32:59 +00002// 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.
Douglas Gregor0adaa882011-12-05 17:28:06 +00004
Ted Kremenek32ad2ee2012-03-01 22:07:04 +00005@__experimental_modules_import C.One;
Douglas Gregor0adaa882011-12-05 17:28:06 +00006
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
Ted Kremenek32ad2ee2012-03-01 22:07:04 +000013@__experimental_modules_import C.Two;
Douglas Gregor0adaa882011-12-05 17:28:06 +000014
15void test_C_Two() {
16 unsigned int *A2_ptr = A2;
17 unsigned short *B2_ptr = B2;
18 unsigned long *C2_ptr = C2;
19}
20
Ted Kremenek32ad2ee2012-03-01 22:07:04 +000021@__experimental_modules_import B.One;
Douglas Gregor0adaa882011-12-05 17:28:06 +000022
23void test_B_One() {
24 short *B1_ptr = B1;
25}
26