FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / warn6.C
blob1a54b3297894bf740603e2b5656b2c80d72f7a21
1 // Build don't link:
2 // Special g++ Options: -W -Wall
4 // Copyright (C) 2001 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 2 Mar 2001 <nathan@codesourcery.com>
7 // Bug 2139. We gave an erronous warning about an unused parm on a
8 // synthesized function
10 struct A
12   virtual ~A ();
14 void foo (A const &a)
16   A a1 = a;