Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae1.C
blob: 0e015d9026f799d1b8a63cb1cd70664bd138ba56 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<
typename
T_VECTOR
>
void
f
(
const
T_VECTOR
&
a
,
decltype
(
a
[
0
])
t
=
0
);
template
<
typename
T
>
void
f
(
const
T
&
a
,
decltype
(
a
*
1
)
t
=
0
);
int
main
()
{
int
c
;
f
(
c
);
}