Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / objc.dg / param-1.m
blobe796a3b510772277cdd80b8d36a8169e76d1c643
1 /* Test if compiler detects object as an parameter to a method
2    or not. It is not valid.  */
3 /* { dg-do compile } */
5 @interface foo
6 @end
8 @implementation foo
9 @end
11 @interface bar
12 -(void) my_method:(foo) my_param; /* { dg-error "can not use an object as parameter to a method" } */
13 @end
15 @implementation bar
16 -(void) my_method:(foo) my_param /* { dg-error "can not use an object as parameter to a method" } */
19 @end