repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr57981.C
blob
33f46371eb7faf207d074e2079b64091db0b536d
1
// { dg-do compile { target c++11 } }
2
// { dg-options "-Wall -Wextra" }
3
4
template<class T>
5
void f(T t, void* = 0) // { dg-warning "unused parameter" }
6
{
7
}
8
9
template<class T>
10
auto g(T t) -> decltype(f(t))
11
{
12
f(t);
13
}
14
15
int main()
16
{
17
g(0);
18
}