PR c++/80598
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wunused-function4.C
blob00d5d70fc908648f6d2933bfa6099449c69d1b26
1 // PR c++/80598
2 // { dg-do compile }
3 // { dg-options "-Wunused-function" }
5 static void
6 foo ()          // { dg-bogus "defined but not used" }
10 static void
11 bar ()          // { dg-warning "defined but not used" }
15 template <class T>
16 int
17 baz (T x)
19   foo ();
20   return 0;