summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/auto16.C
blob: e9754f3251cad611a8d17618b5618346376d6ba3 (plain)
1
2
3
4
5
6
7
// PR c++/40619
// { dg-do compile { target c++11 } }

template<typename U> struct X {};

template<typename T> auto f(T t) -> X<decltype(t+1)> {}
template<typename T> auto g(T t) -> X<decltype(t+1)> {}