1 // https://github.com/llvm/llvm-project/issues/60890
5 // RUN: split-file %s %t
7 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/a.cppm -o %t/a.pcm
8 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/b.cppm -fprebuilt-module-path=%t -o %t/b.pcm
9 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/c.cppm -fprebuilt-module-path=%t -o %t/c.pcm
10 // RUN: %clang_cc1 -std=c++20 %t/d.cpp -fprebuilt-module-path=%t -S -emit-llvm -o -
15 export template<typename T>
17 friend void aa(a x) requires(true) {}
18 void aaa() requires(true) {}
21 export template struct a<double>;
23 export template<typename T>
24 void foo(T) requires(true) {}
26 export template void foo<double>(double);
28 export template <typename T>
65 // expected-no-diagnostics