* testsuite/icf_virtual_function_folding_test.cc (class Bar): Add
authorIan Lance Taylor <ian@airs.com>
Wed, 1 Dec 2010 16:53:57 +0000 (16:53 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 1 Dec 2010 16:53:57 +0000 (16:53 +0000)
virtual destructor.

gold/ChangeLog
gold/testsuite/icf_virtual_function_folding_test.cc

index 49592dc9b1547aeda392bcabb3b2f6cc6f4c8bef..0d706f83d6b4f313c339fd14fac62c908bbed0e9 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-01  Ian Lance Taylor  <iant@google.com>
+
+       * testsuite/icf_virtual_function_folding_test.cc (class Bar): Add
+       virtual destructor.
+
 2010-12-01  Ian Lance Taylor  <iant@google.com>
 
        * README: Update compilers known to work and fail.
index 1ba3e734682bcedcf18a6bd8991e53aebb5ab35b..ba063c8aab66f30a9000716fdbcdadf4299996de 100644 (file)
@@ -36,6 +36,7 @@ namespace
 class Bar
 {
  public:
+  virtual ~Bar() { }
   virtual int fn1();
 };