Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / warn / Wunused-4.C
blob9018e92ef948ca30e3e5fd30c40a368e4715cf05
1 // { dg-do compile }
2 // { dg-options "-Wunused-parameter" }
4 // Copyright (C) 2003 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 15 Sep 2003 <nathan@codesourcery.com>
6 // Origin: yotamm@mellanox.co.il
9 // PR c++/9848. Missing warning
11 struct C1 {
12   // Only use in-charge ctor
13   C1(int bi) {}  // { dg-warning "unused parameter" "" }
15 struct C2 {
16   // Only use base ctor
17   C2(int bi) {}  // { dg-warning "unused parameter" "" }
20 struct D : C2
22   D (int) : C2 (1) {}
25 void show_compile_warning ()
27   C1 c1 (1);
28   
29   D d (1);