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