diff mbox series

c++: avoid testcase warning on arm

Message ID 0ef64a8f-0a2e-f9ba-2847-f4c64f821b26@acm.org
State New
Headers show
Series c++: avoid testcase warning on arm | expand

Commit Message

Nathan Sidwell April 17, 2020, 1:11 p.m. UTC
I've pushed this patch to avoid a warning introduced by 94426's change 
to linkage of lambda.

The arm eabi wants to emit the vtable, other abis don't.

nathan
diff mbox series

Patch

diff --git i/gcc/testsuite/ChangeLog w/gcc/testsuite/ChangeLog
index dd2cb04916f..b98c72cdd2a 100644
--- i/gcc/testsuite/ChangeLog
+++ w/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@ 
+2020-04-17  Nathan Sidwell  <nathan@acm.org>
+
+	PR c++/94608
+	* g++.dg/lto/pr83720_0.C: Add fn def to avoid warning on arm ABI.
+
 2020-04-17  Jakub Jelinek  <jakub@redhat.com>
 
 	PR rtl-optimization/94618
diff --git i/gcc/testsuite/g++.dg/lto/pr83720_0.C w/gcc/testsuite/g++.dg/lto/pr83720_0.C
index 4e63c9be7cd..91f36caf2c0 100644
--- i/gcc/testsuite/g++.dg/lto/pr83720_0.C
+++ w/gcc/testsuite/g++.dg/lto/pr83720_0.C
@@ -48,7 +48,7 @@  public:
   k(al<void(b::ai)>);
 } d([](b::ai) {
   struct be {
-    virtual void f();
+    virtual void f(){}
   };
   struct bf;
   b::c<bf>().aj("", &be::f);