| // 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 |
| static INLINE void func(long) {} |
| template <typename T = long> void a() { func(T{}); } |
| // expected-no-diagnostics |
| // expected-error@a.h:7 {{no matching function for call to 'func'}} |
| // expected-note@test.cc:2 {{in instantiation of function template specialization 'a<long>' requested here}} |