blob: 20febb935b1eedda14dbd2a075d8a97ba81a53ca [file] [log] [blame]
// { 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 I> int frob ()
{
return I;
}
export template<int I> class X
{
int i = I;
public:
operator int () const { return i; }
};
}