Douglas Gregor | 05f1035 | 2011-12-17 23:38:30 +0000 | [diff] [blame] | 1 | __import_module__ redecl_merge_top; |
| 2 | |
| 3 | @interface Super |
| 4 | @end |
| 5 | |
| 6 | @interface A : Super |
| 7 | - (Super*)init; |
| 8 | @end |
| 9 | |
Douglas Gregor | 9f562c8 | 2011-12-19 15:27:36 +0000 | [diff] [blame] | 10 | @class B; |
| 11 | |
Douglas Gregor | 32c1757 | 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 | 022857e | 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 | 0475cd8 | 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 | 21823bf | 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 | 074a409 | 2011-12-19 18:19:24 +0000 | [diff] [blame] | 45 | #ifdef __cplusplus |
| 46 | template<typename T> class Vector { |
| 47 | public: |
| 48 | void push_back(const T&); |
| 49 | }; |
| 50 | #endif |
Douglas Gregor | 0abc262 | 2011-12-20 22:06:13 +0000 | [diff] [blame] | 51 | |
| 52 | int ONE; |
| 53 | __import_module__ redecl_merge_top.Explicit; |
| 54 | const int one = ONE; |