Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae38.C
blob: 2e860ee69998283b67d7cd70b787fbad67f78cf0 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<
class
T
,
unsigned
=
sizeof
(
T
)>
auto
f
(
int
)
->
char
;
template
<class>
auto
f
(...)
->
char
(&)[
2
];
static_assert
(
sizeof
(
f
<void>
(
0
))
!=
1
,
""
);
static_assert
(
sizeof
(
f
<
void
()>(
0
))
!=
1
,
""
);