* PATCH COMMITTED: Add virtual destructor to gold test
@ 2010-12-01 16:57 Ian Lance Taylor
0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2010-12-01 16:57 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 311 bytes --]
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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: destructor --]
[-- Type: text/x-diff, Size: 525 bytes --]
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();
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-01 16:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-01 16:57 PATCH COMMITTED: Add virtual destructor to gold test Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).