Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/modules/macro-7_a.C
2023-03-06 14:48:14 +01:00

14 lines
261 B
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);
}