Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae16.C
blob: 56cbdadc585037db79178eb24f823b84dd424765 [
file
] [
log
] [
blame
]
// PR c++/48531
// { dg-do compile { target c++11 } }
template
<
class
T
,
class
=
decltype
(
T
())
>
char
f
(
int
);
template
<class>
double
f
(...);
struct
B2
{
B2
(...);
};
#define
SA
(
X
)
static_assert
((
X
),
#X)
SA
(
sizeof
(
f
<
B2
[
2
]>(
0
))
!=
1
);