matcher-1.m: Change return type to int

Message ID 20180211221702.GA12231@intel.com
State New
Headers show
Series
  • matcher-1.m: Change return type to int
Related show

Commit Message

H.J. Lu Feb. 11, 2018, 10:17 p.m.
my_exception_matcher must return int.  Otherwise, this test fails.

Tested on i686 and x86-64.  OK for trunk?

H.J.
---
	PR testsuite/84324
	* objc/execute/exceptions/matcher-1.m (my_exception_matcher):
	Change return type to int.
---
 gcc/testsuite/objc/execute/exceptions/matcher-1.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/gcc/testsuite/objc/execute/exceptions/matcher-1.m b/gcc/testsuite/objc/execute/exceptions/matcher-1.m
index cbe4365da90..25d6759cc9c 100644
--- a/gcc/testsuite/objc/execute/exceptions/matcher-1.m
+++ b/gcc/testsuite/objc/execute/exceptions/matcher-1.m
@@ -20,7 +20,7 @@  int main(void)
 
 static unsigned int handlerExpected = 0;
 
-void
+int
 my_exception_matcher(Class match_class, id exception)
 {
   /* Always matches.  */