3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 %t/template_default_arg.cppm -emit-module-interface -o %t/template_default_arg.pcm
6 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -fsyntax-only -verify
8 //--- template_default_arg.cppm
9 export module template_default_arg
;
12 export
template <typename T
= t
>
18 import template_default_arg
;
21 A
<t
> a1
; // expected-error {{declaration of 't' must be imported from module 'template_default_arg' before it is required}}
22 // expected-note@* {{declaration here is not visible}}