| // RUN: %clang -std=c++20 %t/a.cppm --precompile -o %t/a.pcm \ |
| // RUN: %clang -std=c++20 %t/test.cc -fprebuilt-module-path=%t -fsyntax-only -Xclang -verify \ |
| // RUN: %clang -std=c++20 %t/a.cppm --precompile -o %t/a.pcm |
| // RUN: %clang -std=c++20 %t/test.cc -fprebuilt-module-path=%t -fsyntax-only -Xclang -verify |
| template <typename G> static void func() {} |
| template <> INLINE void func<long>() {} |
| template <typename T = long> void a() { func<T>(); } |
| // expected-no-diagnostics |
| // expected-error@a.h:9 {{no matching function for call to 'func'}} |
| // expected-note@test.cc:2 {{in instantiation of function template specialization 'ns::a<long>' requested here}} |