This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH COMMITTED: Add virtual destructor to gold test
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Wed, 01 Dec 2010 08:57:25 -0800
- Subject: 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();
};