aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/objc/compile/method-1.m
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/objc/compile/method-1.m')
-rw-r--r--gcc-4.9/gcc/testsuite/objc/compile/method-1.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/objc/compile/method-1.m b/gcc-4.9/gcc/testsuite/objc/compile/method-1.m
new file mode 100644
index 000000000..e9bb989be
--- /dev/null
+++ b/gcc-4.9/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