| 1 |
// { dg-module-do run } |
| 2 |
// { dg-additional-options {-fmodules-ts -fdump-lang-module-graph-blocks-alias} } |
| 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 {Cluster members:\n( \[.\]=[^\n]*'\n)* \[.\]=specialization definition '::TPL<int>'\n \[.\]=specialization declaration '::TPL<int>::TPL<int>'\n} module } } |
| 20 |
// { dg-final { scan-lang-dump {Writing:-[0-9]*'s type spec merge key \(specialization\) type_decl:'::TPL<int>'} module } } |
| 21 |
// { dg-final { scan-lang-dump {Depset:. specialization entity:. type_decl:'::TPL<int>'} module } } |