2 // { dg-options "-W -Wall" }
4 // Copyright (C) 2001 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 26 April 2001 <nathan@codesourcery.com>
7 // Bug 2356. Unused parameter information introduced in a ctor
8 // definition was not propagated to clones, leading to missed or
9 // unwarranted unused parameter warnings, possibly given twice.
37 Y::Y(int i) // { dg-warning "unused parameter" }
40 void Y::bar (int i) // { dg-warning "unused parameter" }
43 void bar (int i) // { dg-warning "unused parameter" }