diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 545c39dccdd68a2d8131c854eb7dfe1277b87752..4c4b81eadabedd520e07f97c1993cfc1babf9e1b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2017-11-25  Andreas Schwab  <schwab@linux-m68k.org>
+
+	* g++.dg/abi/structret1.C (FrameworkObject::action): Return a
+	value.
+
 2017-11-25  Jakub Jelinek  <jakub@redhat.com>
 
 	PR target/82848
diff --git a/gcc/testsuite/g++.dg/abi/structret1.C b/gcc/testsuite/g++.dg/abi/structret1.C
index e9d4fd0ff9fa90c3a42c76517cf2e2eade5d5a8f..7e72d4c7385bf221e5ca8398fc33b379fd16fed4 100644
--- a/gcc/testsuite/g++.dg/abi/structret1.C
+++ b/gcc/testsuite/g++.dg/abi/structret1.C
@@ -20,6 +20,7 @@ ConstructedObject FrameworkObject::action() {
   if (this != r33) {
     abort ();
   }
+  return ConstructedObject();
 }
 
 int main()