1 // { dg-additional-options -fmodules-ts }
2 
3 export module foo;
4 // { dg-module-cmi foo }
5 
6 template <typename T> class TPL
7 {
8   template <typename U> friend void foo (U);
9 };
10 
11 template class TPL<char>;
12 
foo(V x)13 template <typename V> void foo (V x)
14 {
15 }
16