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.
+ (Class) superclass;
+ (const char *)name;
- (const char *)name;
+
+/* For try-catch impl that retains and releases thrown objects. */
+- (id) retain;
+- (void) release;
+
@end
#endif /* _TESTSUITE_OBJECT_H_ */
{
return object_getClassName (self);
}
+
+- (id) retain
+{
+ return self;
+}
+
+- (void) release
+{
+ return;
+}
+
@end