repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
sfinae38.C
blob
2e860ee69998283b67d7cd70b787fbad67f78cf0
1
// { dg-do compile { target c++11 } }
2
3
template<class T, unsigned = sizeof(T)>
4
auto f(int) -> char;
5
6
template<class>
7
auto f(...) -> char(&)[2];
8
9
static_assert(sizeof(f<void>(0)) != 1, "");
10
static_assert(sizeof(f<void()>(0)) != 1, "");