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
8 // RUN: %clang_cc1 -std=c++20 %t/Templ.cppm -emit-reduced-module-interface -o %t/Templ.pcm
9 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -verify -fsyntax-only
20 Templ(T t) -> Templ<T>;
25 Templ t(5); // expected-error {{declaration of 'Templ' must be imported from module 'Templ' before it is required}}
26 // expected-error@-1 {{unknown type name 'Templ'}}
27 // expected-note@Templ.cppm:3 {{declaration here is not visible}}