| Fariborz Jahanian | 9bae5e7 | 2009-01-17 21:57:49 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | |||||
| 3 | @interface foo | ||||
| 4 | @end | ||||
| 5 | |||||
| 6 | @implementation foo | ||||
| 7 | @end | ||||
| 8 | |||||
| 9 | @interface bar | ||||
| 10 | -(void) my_method:(foo) my_param; // expected-error {{can not use an object as parameter to a method}} | ||||
| 11 | @end | ||||
| 12 | |||||
| 13 | @implementation bar | ||||
| 14 | -(void) my_method:(foo) my_param // expected-error {{can not use an object as parameter to a method}} | ||||
| 15 | { | ||||
| 16 | } | ||||
| 17 | @end | ||||
| 18 | |||||