hanchenye-llvm-project/clang/test/SemaObjC/method-bad-param.m

19 lines
344 B
Mathematica
Raw Normal View History

// 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