This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH COMMITTED: Add virtual destructor to gold test


This patch adds a virtual destructor to a test in gold.  This avoids a
warning from g++ 4.1.3 which causes the test to fail.  Committed to
mainline and 2.21 branch.

Ian


2010-12-01  Ian Lance Taylor  <iant@google.com>

	* testsuite/icf_virtual_function_folding_test.cc (class Bar): Add
	virtual destructor.


Index: testsuite/icf_virtual_function_folding_test.cc
===================================================================
RCS file: /cvs/src/src/gold/testsuite/icf_virtual_function_folding_test.cc,v
retrieving revision 1.2
diff -u -r1.2 icf_virtual_function_folding_test.cc
--- testsuite/icf_virtual_function_folding_test.cc	23 Apr 2010 18:49:23 -0000	1.2
+++ testsuite/icf_virtual_function_folding_test.cc	1 Dec 2010 16:53:18 -0000
@@ -36,6 +36,7 @@
 class Bar
 {
  public:
+  virtual ~Bar() { }
   virtual int fn1();
 };
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]