Test g++.dg/abi/packed1.C triggers a warning for several targets.  That
warning is not relevant to the purpose of the test, as shown by the fact
that the dg-warning directive was added later and additional targets
keep trickling in.  Rather than continue to add to the list of targets
for the warning, this patch ignores the warning when it appears.

Tested on arm-none-linux-gnueabi.  OK for trunk and 4.6?
2011-05-24  Janis Johnson  <jani...@codesourcery.com>

        * g++.dg/abi/packed1.C: Ignore warning.

Index: g++.dg/abi/packed1.C
===================================================================
--- g++.dg/abi/packed1.C        (revision 174094)
+++ g++.dg/abi/packed1.C        (working copy)
@@ -1,10 +1,12 @@
 // PR c++/41788
 // { dg-options "-Wpacked" }
 // { dg-do run }
+// Ignore a warning that is irrelevant to the purpose of this test.
+// { dg-prune-output "inefficient.*vptr" }
 
 extern "C" void abort ();
 
-struct INNER { // { dg-warning "inefficient.*vptr" "" { target alpha*-*-* 
ia64-*-* hppa*-*-* mips-sgi-irix* sparc*-*-* spu-*-* sh*-*-* } }
+struct INNER {
   virtual int foo() const { return 1; }
 } __attribute__ ((packed));
 

Reply via email to