testsuite, objective-c++ : Add a dummy retain/release to testuite object.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 7 Oct 2020 15:24:14 +0000 (16:24 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 11 Oct 2020 15:55:27 +0000 (16:55 +0100)
commitcc3014d80e1072c376687f6fcfa421953a58fdd1
treea6124b63e049bc67b45e8939ef7c61cf224e0715
parentfd36daf64a1596b493d054604dd409bc7506fbfd
testsuite, objective-c++ : Add a dummy retain/release to testuite object.

On newer systems, the throw/catch process sends retain and release
messages to thrown objects.  While these are not needed in the testsuite
cases, they cause the tests to fail because the selector is not handled.
Add dummy methods to the testsuite object.

gcc/testsuite/ChangeLog:

* objc-obj-c++-shared/TestsuiteObject.h: Add dummy retain and
release method declarations.
* objc-obj-c++-shared/TestsuiteObject.m: Add dummy retain and
release implementations.
gcc/testsuite/objc-obj-c++-shared/TestsuiteObject.h
gcc/testsuite/objc-obj-c++-shared/TestsuiteObject.m