3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 %t/Templ.cppm -emit-module-interface -o %t/Templ.pcm
6 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -verify -fsyntax-only
17 Templ(T t) -> Templ<T>;
22 Templ t(5); // expected-error {{declaration of 'Templ' must be imported from module 'Templ' before it is required}}
23 // expected-error@-1 {{unknown type name 'Templ'}}
24 // expected-note@Templ.cppm:3 {{declaration here is not visible}}