From e91de072adbe07ae528857a75c9ef4f1d12e5688 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Tue, 26 Sep 2006 08:36:21 -0700 Subject: re PR objc/29195 (ICE in expand_expr_real_1, at expr.c:6932) 2006-09-26 Andrew Pinski PR objc/29195 * objc-act.c (objc_push_parm): If we change the type of the decl, relayout the decl. 2006-09-26 Andrew Pinski PR objc/29195 * objc/compile/method-1.m: New test. From-SVN: r117229 --- gcc/testsuite/objc/compile/method-1.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gcc/testsuite/objc/compile/method-1.m (limited to 'gcc/testsuite/objc/compile') diff --git a/gcc/testsuite/objc/compile/method-1.m b/gcc/testsuite/objc/compile/method-1.m new file mode 100644 index 00000000000..e9bb989bef6 --- /dev/null +++ b/gcc/testsuite/objc/compile/method-1.m @@ -0,0 +1,12 @@ +/* PR objc/29195 */ +/* Test that array decls are changed to a pointer type + correctly and make sure we don't crash because the + decl was not relayed out. */ + +@ implementation NGActiveSocket ++ (void) socketPair:(int [2]) + _pair +{ + _pair[0] = 0; +} +@end -- cgit v1.2.1