Retro68/gcc/gcc/testsuite/obj-c++.dg/too-many-args.mm
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

11 lines
197 B
Plaintext

/* { dg-do compile } */
@interface SomeClass
+ method:(int)foo;
@end
int main(void) {
[SomeClass method:3, 4]; /* { dg-error "too many arguments to method \\'method:\\'" } */
return 0;
}