1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify -Wno-objc-root-class %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc@interface Foo 4*f4a2713aSLionel Sambuc- (id)test:(id)one, id two; 5*f4a2713aSLionel Sambuc- (id)bad:(id)one, id two, double three; 6*f4a2713aSLionel Sambuc@end 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc@implementation Foo 9*f4a2713aSLionel Sambuc- (id)test:(id )one, id two {return two; } 10*f4a2713aSLionel Sambuc- (id)bad:(id)one, id two, double three { return two; } 11*f4a2713aSLionel Sambuc@end 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambucint main() { 15*f4a2713aSLionel Sambuc Foo *foo; 16*f4a2713aSLionel Sambuc [foo test:@"One", @"Two"]; 17*f4a2713aSLionel Sambuc [foo bad:@"One", @"Two"]; // expected-error {{too few arguments to method call}} 18*f4a2713aSLionel Sambuc [foo bad:@"One", @"Two", 3.14]; 19*f4a2713aSLionel Sambuc [foo bad:@"One", @"Two", 3.14, @"Two"]; // expected-error {{too many arguments to method call}} 20*f4a2713aSLionel Sambuc} 21