diff options
Diffstat (limited to 'gcc/testsuite/objc/compile/method-1.m')
-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 000000000..e9bb989be --- /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 |