// { dg-additional-options "-fmodules-ts" } // { dg-module-cmi M } export module M; export template struct A { friend struct S; template friend struct T; }; export template struct B { friend void f(); template friend void g(); };