brintos

brintos / llvm-project-archived public Read only

0
0
Text · 562 B · 321d930 Raw
27 lines · cpp
1// RUN: rm -rf %t2// RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/wildcard-submodule-exports %s -verify3// FIXME: When we have a syntax for modules in C++, use that.4 5@import C.One;6 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 13@import C.Two;14 15void test_C_Two() {16  unsigned int *A2_ptr = A2;17  unsigned short *B2_ptr = B2;18  unsigned long *C2_ptr = C2;19}20 21@import B.One;22 23void test_B_One() {24  short *B1_ptr = B1;25}26 27