Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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"
);
// #