Debian Codegraph @

gcc/testsuite/g++.dg/modules/macro-7_a.C

raw
1 // { dg-additional-options -fmodules-ts }
2 export module foo;
3 // { dg-module-cmi foo }
4
5 #define MACRO(X) X
6
7 export template<int I> int Factory ()
8 {
9 // this macro expansion location ends up in the instantiation
10 // emitted by an importer
11 return MACRO(I);
12 }
13