Debian Codegraph @

gcc/testsuite/objc.dg/too-many-args.m

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