Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/sfinae25.C

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"); // #