diff options
Diffstat (limited to 'gcc/testsuite/obj-c++.dg/too-many-args.mm')
-rw-r--r-- | gcc/testsuite/obj-c++.dg/too-many-args.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/obj-c++.dg/too-many-args.mm b/gcc/testsuite/obj-c++.dg/too-many-args.mm new file mode 100644 index 000000000..6fee1b31b --- /dev/null +++ b/gcc/testsuite/obj-c++.dg/too-many-args.mm @@ -0,0 +1,10 @@ +/* { 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; +} |