Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae15.C
blob: d8b3228903023ece89f9fb15e657d7353ee32355 [
file
] [
log
] [
blame
]
// PR c++/48531
// { dg-do compile { target c++11 } }
template
<
class
T
,
class
=
decltype
(
T
())
>
char
f
(
int
);
template
<class>
char
(&
f
(...))[
2
];
static_assert
(
sizeof
(
f
<
int
[]>(
0
))
!=
1
,
"Error"
);