Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / warn / unused-fn1.C
blobaabc01b3f44364e1505305058fa0fe705da21a56
1 // PR c++/80916
2 // { dg-options "-Os -Wunused" }
4 struct j {
5   virtual void dispatch(void *) {}
6 };
7 template <typename>
8 struct i : j {
9   void dispatch(void *) {} // warning: 'void i< <template-parameter-1-1> >::dispatch(void*) [with <template-parameter-1-1> = {anonymous}::l]' declared 'static' but never defined [-Wunused-function]
11 namespace {
12   struct l : i<l> {};
14 void f(j *k) {
15   k->dispatch(0);