| 1 |
// { dg-additional-options "-fmodules" } |
| 2 |
// { dg-module-cmi M } |
| 3 |
|
| 4 |
export module M; |
| 5 |
|
| 6 |
export template <typename T> inline void ma() {} |
| 7 |
extern template void ma<int>(); |
| 8 |
extern template void ma<bool>(); |
| 9 |
template void ma<char>(); |
| 10 |
|
| 11 |
export template <typename T> void mb() {} |
| 12 |
extern template void mb<int>(); |
| 13 |
extern template void mb<bool>(); |
| 14 |
template void mb<char>(); |
| 15 |
|
| 16 |
export template <typename T> inline int mc = 123; |
| 17 |
extern template int mc<int>; |
| 18 |
extern template int mc<bool>; |
| 19 |
template int mc<char>; |
| 20 |
|
| 21 |
export template <typename T> int md = 123; |
| 22 |
extern template int md<int>; |
| 23 |
extern template int md<bool>; |
| 24 |
template int md<char>; |