summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/method-20.m
blob: 722463ce2b61a55dab95c99aa498ccf2b6caae3a (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile }  */

/* We used to crash after we found the type for int[m] was declared as invalid. */
/* PR objc/29197 */

@ implementation NGActiveSocket
+ (void) socketPair:(int[m]) _pair {} /* { dg-error "" } */
       /* { dg-warning "" "" { target *-*-* } 7 } */
@end