☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae25.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/sfinae25.C
code
plain
raw
1
// PR c++/49105
2
// { dg-do compile { target c++11 } }
3
4
template<class T, class = decltype(T{})>
5
char f(int);
6
7
template<class T>
8
auto f(...) -> char(&)[2];
9
10
static_assert(sizeof(f<const int&&>(0)) == 1, "Error"); // #