]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/sfinae25.C
aarch64: Further renaming of generic code
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / sfinae25.C
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"); // #