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