| 1 |
// { dg-module-do run } |
| 2 |
// { dg-additional-options {-fmodules-ts -fdump-lang-module-graph} } |
| 3 |
|
| 4 |
export module foo; |
| 5 |
// { dg-module-cmi foo } |
| 6 |
|
| 7 |
export template<typename T> struct TPL |
| 8 |
{ |
| 9 |
T m; |
| 10 |
}; |
| 11 |
|
| 12 |
export inline int user (int i) |
| 13 |
{ |
| 14 |
TPL<int> x; |
| 15 |
x.m = i; |
| 16 |
return x.m; |
| 17 |
} |
| 18 |
|
| 19 |
// { dg-final { scan-lang-dump {Pending specialization '::TPL<int>' entity:. section:. keyed to '::TPL'} module } } |
| 20 |
// { dg-final { scan-lang-dump {Pending specialization '::TPL<int>::TPL<int>' entity:. section:. also keyed to '::TPL'} module } } |