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 
main()15 int main()
16 {
17   g(0);
18 }
19