(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
modules/
indirect-2_a.C
// { 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; }
  };
}