3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 %t/X.cppm -emit-module-interface -o %t/X.pcm
6 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -fsyntax-only -verify
21 struct foo
<int> : base
<int> {
30 export
template <class T
>
42 foo
<int> f
; // expected-error {{'foo' must be declared before it is used}}
43 // expected-note@* {{declaration here is not visible}}