blob: 34f71e76a5c46e12efd78b0a9bb6d2f0a33d60c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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
|