aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/sfinae25.C
blob: 0ff872c9e23ce23fe93d3e6f04e6634602a0e4d0 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/49105
// { dg-do compile { target c++11 } }

template<class T, class = decltype(T{})>
char f(int);

template<class T>
auto f(...) -> char(&)[2];

static_assert(sizeof(f<const int&&>(0)) == 1, "Error"); // #