[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Modules / wildcard-submodule-exports.cpp
blob321d930435d82d4431d67cc5f45ce19d601b13e5
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/wildcard-submodule-exports %s -verify
3 // FIXME: When we have a syntax for modules in C++, use that.
5 @import C.One;
7 void test_C_One() {
8 int *A1_ptr = A1;
9 long *C1_ptr = C1;
10 (void)B1; // expected-error{{use of undeclared identifier 'B1'}}
13 @import C.Two;
15 void test_C_Two() {
16 unsigned int *A2_ptr = A2;
17 unsigned short *B2_ptr = B2;
18 unsigned long *C2_ptr = C2;
21 @import B.One;
23 void test_B_One() {
24 short *B1_ptr = B1;