(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
modules/
macro-7_a.C
// { dg-additional-options -fmodules-ts }
export module foo;
// { dg-module-cmi foo }

#define MACRO(X) X

export template<int I> int Factory ()
{
  // this macro expansion location ends up in the instantiation
  // emitted by an importer
  return MACRO(I);
}