| 1 |
// { dg-additional-options "-fmodule-header -fdump-lang-module-blocks" } |
| 2 |
// { dg-module-cmi {} } |
| 3 |
|
| 4 |
template<typename T> struct TPL {operator T () const {return 0;}}; |
| 5 |
|
| 6 |
template<typename T> |
| 7 |
auto Foo (T *arg) |
| 8 |
-> TPL<decltype (+*arg)> {return TPL<int> ();} |
| 9 |
|
| 10 |
template<typename T> |
| 11 |
auto Bar (T *arg) |
| 12 |
-> TPL<decltype (arg)> ; |
| 13 |
|
| 14 |
// { dg-final { scan-lang-dump { Cluster members:\n \[0\]=decl definition '::template Foo'\n \[1\]=specialization declaration '::TPL<#null#>'\n \[2\]=binding '::Foo'\n} module } } |