blob: 947fd082553ec6c3c660a67dd179cd700528503f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: split-file %s %t
//
// RUN: %clang_cc1 -std=c++20 %t/A.cppm -emit-module-interface -o %t/A.pcm
// RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/B.cppm -fsyntax-only -verify
//
//--- A.cppm
export module A;
struct X {};
export using Y = X;
//--- B.cppm
export module B;
import A;
Y y; // OK, definition of X is reachable
X x; // expected-error {{unknown type name 'X'}}
|