blob: 34f71e76a5c46e12efd78b0a9bb6d2f0a33d60c0 [file] [log] [blame]
// RUN: clang -fsyntax-only -verify %s
@interface foo
@end
@implementation foo
@end
@interface bar
-(void) my_method:(foo) my_param; // expected-error {{can not use an object as parameter to a method}}
@end
@implementation bar
-(void) my_method:(foo) my_param // expected-error {{can not use an object as parameter to a method}}
{
}
@end