forked from OSchip/llvm-project
19 lines
344 B
Objective-C
19 lines
344 B
Objective-C
// 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
|
|
|