| // RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-module-interface -o %t/a.pcm |
| // RUN: %clang_cc1 -std=c++20 %t/b.cppm -emit-module-interface -o %t/b.pcm \ |
| // RUN: -fprebuilt-module-path=%t |
| // RUN: %clang_cc1 -std=c++20 %t/c.cppm -emit-module-interface -o %t/c.pcm \ |
| // RUN: -fprebuilt-module-path=%t |
| // RUN: %clang_cc1 -std=c++20 %t/d.cpp -fsyntax-only -verify \ |
| // RUN: -fprebuilt-module-path=%t |
| export template<typename> |
| export template<typename T> |
| constexpr auto aa = a<T>(); |
| static_cast<void>(a<void>()); |
| static_cast<void>(aa<void>); |
| // expected-no-diagnostics |
| static_cast<void>(a<void>()); |