brintos

brintos / llvm-project-archived public Read only

0
0
Text · 426 B · 947fd08 Raw
18 lines · cpp
1// RUN: rm -rf %t2// RUN: mkdir -p %t3// RUN: split-file %s %t4//5// RUN: %clang_cc1 -std=c++20 %t/A.cppm -emit-module-interface -o %t/A.pcm6// RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/B.cppm -fsyntax-only -verify7//8//--- A.cppm9export module A;10struct X {};11export using Y = X;12 13//--- B.cppm14export module B;15import A;16Y y; // OK, definition of X is reachable17X x; // expected-error {{unknown type name 'X'}}18