| 1 |
// { dg-additional-options "-fmodule-header -fdump-lang-module-blocks" } |
| 2 |
// { dg-module-cmi {} } |
| 3 |
|
| 4 |
template<typename T> struct TPL_1 { using type = T;}; |
| 5 |
|
| 6 |
template<typename U> struct TPL_2 { using type = int;}; |
| 7 |
|
| 8 |
template<typename V> using TPL_3 = typename TPL_2<V>::type; |
| 9 |
|
| 10 |
template<typename A> |
| 11 |
auto Foo (const A& arg) |
| 12 |
-> TPL_3<typename TPL_1<decltype(arg)>::type> |
| 13 |
{return 3;} |
| 14 |
|
| 15 |
template<typename A> |
| 16 |
auto Bar (const A& arg) |
| 17 |
-> TPL_3<typename TPL_1<decltype(arg)>::type> |
| 18 |
{return 3;} |
| 19 |
|
| 20 |
// { dg-final { scan-lang-dump { Cluster members:\n \[0\]=decl definition '::template Foo'\n \[1\]=specialization declaration '::TPL_1<#null#>'\n \[2\]=specialization declaration '::TPL_3<::TPL_1<#null#>::type>'\n \[3\]=specialization declaration '::TPL_2<::TPL_1<#null#>::type>'\n \[4\]=binding '::Foo'\n} module } } |