1 // RUN: rm -rf %t
2 // RUN: mkdir -p %t
3 // RUN: split-file %s %t
4 //
5 // RUN: %clang_cc1 -std=c++20 %t/mod.cppm -emit-module-interface -o %t/mod.pcm
6 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -fsyntax-only -verify
7 //
8 //--- mod.cppm
9 export module mod;
10 struct t {};
11 export using u = t;
12 
13 //--- Use.cpp
14 // expected-no-diagnostics
15 import mod;
foo()16 void foo() {
17   u v{};
18 }
19