OSDN Git Service

2005-06-28 Thomas Koenig <Thomas.Koenig@online.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / param-1.m
1 /* Test if compiler detects object as an parameter to a method
2    or not. It is not valid.  */
3 /* { dg-do compile } */
4
5 @interface foo
6 @end
7
8 @implementation foo
9 @end
10
11 @interface bar
12 -(void) my_method:(foo) my_param; /* { dg-error "can not use an object as parameter to a method" } */
13 @end
14
15 @implementation bar
16 -(void) my_method:(foo) my_param /* { dg-error "can not use an object as parameter to a method" } */
17 {
18 }
19 @end
20