| 1 |
// { dg-additional-options -fmodules-ts } |
| 2 |
export module inter; |
| 3 |
// { dg-module-cmi inter } |
| 4 |
|
| 5 |
import worker; |
| 6 |
|
| 7 |
namespace hidden { |
| 8 |
export int fn (int x) |
| 9 |
{ |
| 10 |
return -x; |
| 11 |
} |
| 12 |
} |
| 13 |
|
| 14 |
export template <typename T> |
| 15 |
int TPL (T &t) |
| 16 |
{ |
| 17 |
return fn (t); |
| 18 |
} |