blob: 7bdc8f88e51b03b53e7c06d5c931e80aec38db62 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// PR c++/49105
// { dg-options -std=c++0x }
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"); // #
|