// { dg-module-do run } // { dg-additional-options "-fmodules-ts" } // indirect references to import, simple templates export module foo; // { dg-module-cmi foo } namespace foo { export template int frob () { return I; } export template class X { int i = I; public: operator int () const { return i; } }; }