| 1 |
// { dg-do compile } |
| 2 |
// { dg-options "" } |
| 3 |
|
| 4 |
// Origin: Wolfgang Bangerth <[email protected]> |
| 5 |
|
| 6 |
// PR c++/9459: typeof in return type of template function |
| 7 |
|
| 8 |
void foo (int) {} |
| 9 |
void foo (double) {} |
| 10 |
|
| 11 |
template <typename C> |
| 12 |
typeof(foo(1)) |
| 13 |
bar () { return foo(1); } |