diff options
author | Andrew Pinski <pinskia@gcc.gnu.org> | 2006-09-26 08:36:21 -0700 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2006-09-26 08:36:21 -0700 |
commit | e91de072adbe07ae528857a75c9ef4f1d12e5688 (patch) | |
tree | c375a10a62d82187241f5638ddcb0c9b2d0368cf /gcc/testsuite/objc/compile | |
parent | 32d662aa80bd3c9a6daa74a4e34757da900657fd (diff) | |
download | gcc-e91de072adbe07ae528857a75c9ef4f1d12e5688.tar.gz |
re PR objc/29195 (ICE in expand_expr_real_1, at expr.c:6932)
2006-09-26 Andrew Pinski <pinskia@physics.uc.edu>
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 <pinskia@physics.uc.edu>
PR objc/29195
* objc/compile/method-1.m: New test.
From-SVN: r117229
Diffstat (limited to 'gcc/testsuite/objc/compile')
-rw-r--r-- | gcc/testsuite/objc/compile/method-1.m | 12 |
1 files changed, 12 insertions, 0 deletions
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 |