Steve Naroff | 9637a9b | 2007-10-09 22:01:59 +0000 | [diff] [blame] | 1 | // RUN: clang %s -parse-ast |
2 | #import <Foundation/NSObject.h> | ||||
3 | |||||
4 | struct D { | ||||
5 | double d; | ||||
6 | }; | ||||
7 | |||||
8 | @interface Foo : NSObject | ||||
9 | |||||
10 | - method:(int)a; | ||||
11 | - method:(int)a; | ||||
12 | |||||
13 | @end | ||||
14 | |||||
15 | @interface Bar : NSObject | ||||
16 | |||||
17 | - method:(void *)a; | ||||
18 | |||||
19 | @end | ||||
20 | |||||
21 | @interface Car : NSObject | ||||
22 | |||||
23 | - method:(struct D)a; | ||||
24 | |||||
25 | @end | ||||
26 | |||||
27 | @interface Zar : NSObject | ||||
28 | |||||
29 | - method:(float)a; | ||||
30 | |||||
31 | @end | ||||
32 | |||||
33 | @interface Rar : NSObject | ||||
34 | |||||
35 | - method:(float)a; | ||||
36 | |||||
37 | @end | ||||
38 | |||||
39 | int main() { | ||||
Steve Naroff | ee1de13 | 2007-10-10 21:53:07 +0000 | [diff] [blame^] | 40 | id xx = [[Car alloc] init]; |
Steve Naroff | 9637a9b | 2007-10-09 22:01:59 +0000 | [diff] [blame] | 41 | |
Steve Naroff | ee1de13 | 2007-10-10 21:53:07 +0000 | [diff] [blame^] | 42 | [xx method:4]; |
Steve Naroff | 9637a9b | 2007-10-09 22:01:59 +0000 | [diff] [blame] | 43 | } |