1// { dg-do assemble } 2// { dg-options "-W -Wall" } 3 4// Copyright (C) 2001 Free Software Foundation, Inc. 5// Contributed by Nathan Sidwell 2 Mar 2001 <nathan@codesourcery.com> 6 7// Bug 2139. We gave an erronous warning about an unused parm on a 8// synthesized function 9 10struct A 11{ 12 virtual ~A (); 13}; 14void foo (A const &a) 15{ 16 A a1 = a; 17} 18