| 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 |
|