| 1 |
// { dg-additional-options "-fmodules-ts -fdump-lang-module-blocks-alias-uid" } |
| 2 |
export module bar; |
| 3 |
// { dg-module-cmi bar } |
| 4 |
|
| 5 |
import foo; |
| 6 |
|
| 7 |
namespace bar |
| 8 |
{ |
| 9 |
export int quux (int i = foo::TPL<1> ().frob<2> ()) |
| 10 |
{ |
| 11 |
return i; |
| 12 |
} |
| 13 |
} |
| 14 |
|
| 15 |
// { dg-final { scan-lang-dump {Lazily binding '::foo::TPL'@'foo' section:} module } } |
| 16 |
// { dg-final { scan-lang-dump {Wrote import:-[0-9]* template_decl:'::foo::template TPL@foo:.'@foo} module } } |
| 17 |
|
| 18 |
// { dg-final { scan-lang-dump {Cluster members:\n \[0\]=specialization definition '::foo::TPL<0x1>'\n \[1\]=specialization declaration '::foo::TPL<0x1>::template frob<#unnamed#>'\n \[2\]=specialization declaration '::foo::TPL<0x1>::TPL<0x1>'\n( \[.\]=[^\n]* '\n)*} module } } |
| 19 |
// { dg-final { scan-lang-dump {Cluster members:\n \[0\]=specialization definition '::foo::TPL<0x1>::frob<0x2>'} module } } |
| 20 |
// { dg-final { scan-lang-dump {Writing:-[0-9]*'s type spec merge key \(specialization\) type_decl:'::foo::TPL<0x1>'} module } } |
| 21 |
// { dg-final { scan-lang-dump {Wrote purview:-[0-9]* type_decl:'::foo::TPL<0x1>'} module } } |
| 22 |
// { dg-final { scan-lang-dump {Writing:-[0-9]*'s decl spec merge key \(specialization\) function_decl:'::foo::TPL<0x1>::frob<0x2>'} module } } |