Douglas Gregor | 5948ae1 | 2012-01-03 18:04:46 +0000 | [diff] [blame^] | 1 | @import redecl_merge_top; |
Douglas Gregor | a1be278 | 2011-12-17 23:38:30 +0000 | [diff] [blame] | 2 | |
3 | @interface Super | ||||
4 | @end | ||||
5 | |||||
6 | @interface A : Super | ||||
7 | - (Super*)init; | ||||
8 | @end | ||||
9 | |||||
Douglas Gregor | ecb1938 | 2011-12-19 15:27:36 +0000 | [diff] [blame] | 10 | @class B; |
11 | |||||
Douglas Gregor | 27c6da2 | 2012-01-01 20:30:41 +0000 | [diff] [blame] | 12 | @protocol P1 |
13 | - (void)protoMethod1; | ||||
14 | @end | ||||
15 | |||||
16 | @protocol P1; | ||||
17 | |||||
18 | @protocol P2; | ||||
19 | |||||
20 | @protocol P2; | ||||
21 | |||||
22 | @protocol P2; | ||||
23 | |||||
Douglas Gregor | 0f75323 | 2011-12-22 01:48:48 +0000 | [diff] [blame] | 24 | // Test declarations in different modules with no common initial |
25 | // declaration. | ||||
26 | @class C; | ||||
27 | C *get_a_C(void); | ||||
28 | @class C2; | ||||
29 | C2 *get_a_C2(void); | ||||
30 | @class C3; | ||||
31 | C3 *get_a_C3(void); | ||||
32 | |||||
Douglas Gregor | cce54aa | 2011-12-22 19:44:59 +0000 | [diff] [blame] | 33 | @class C4; |
34 | @class C4; | ||||
35 | @class C4; | ||||
36 | @class C4; | ||||
37 | C4 *get_a_C4(void); | ||||
38 | |||||
Douglas Gregor | 2ccd89c | 2011-12-20 18:11:52 +0000 | [diff] [blame] | 39 | @class Explicit; |
40 | |||||
41 | int *explicit_func(void); | ||||
42 | |||||
43 | struct explicit_struct; | ||||
44 | |||||
Douglas Gregor | dba9361 | 2012-01-01 21:47:52 +0000 | [diff] [blame] | 45 | @protocol P4, P3; |
46 | @protocol P3; | ||||
47 | @protocol P3; | ||||
48 | @protocol P3; | ||||
49 | |||||
Douglas Gregor | f63b0a5 | 2011-12-19 18:19:24 +0000 | [diff] [blame] | 50 | #ifdef __cplusplus |
51 | template<typename T> class Vector { | ||||
52 | public: | ||||
53 | void push_back(const T&); | ||||
54 | }; | ||||
55 | #endif | ||||
Douglas Gregor | 1d4c113 | 2011-12-20 22:06:13 +0000 | [diff] [blame] | 56 | |
57 | int ONE; | ||||
Douglas Gregor | 5948ae1 | 2012-01-03 18:04:46 +0000 | [diff] [blame^] | 58 | @import redecl_merge_top.Explicit; |
Douglas Gregor | 1d4c113 | 2011-12-20 22:06:13 +0000 | [diff] [blame] | 59 | const int one = ONE; |