Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae25.C
blob: 0ff872c9e23ce23fe93d3e6f04e6634602a0e4d0 [
file
] [
log
] [
blame
]
// 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"
);
// #