3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/foo.cppm -o %t/foo.pcm
6 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -verify -fsyntax-only
10 # 3 __FILE__ 1 // use the next physical line number here (and below)
38 export
template <typename T
>
51 foo2
<short>(); // expected-error {{missing '#include'; 'foo2' must be declared before it is used}}
52 // expected-note@* {{declaration here is not visible}}
53 foo2
<int>(); // expected-error {{missing '#include'; 'foo2' must be declared before it is used}}
54 // expected-note@* {{declaration here is not visible}}