// { dg-additional-options -fmodules-ts } export module foo; // { dg-module-cmi foo } template class TPL { template friend void foo (U); }; template class TPL; template void foo (V x) { }