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 | 022857e | 2011-12-22 01:48:48 +0000 | [diff] [blame] | 12 | // Test declarations in different modules with no common initial |
| 13 | // declaration. |
| 14 | @class C; |
| 15 | C *get_a_C(void); |
| 16 | @class C2; |
| 17 | C2 *get_a_C2(void); |
| 18 | @class C3; |
| 19 | C3 *get_a_C3(void); |
| 20 | |
Douglas Gregor | 0475cd8 | 2011-12-22 19:44:59 +0000 | [diff] [blame^] | 21 | @class C4; |
| 22 | @class C4; |
| 23 | @class C4; |
| 24 | @class C4; |
| 25 | C4 *get_a_C4(void); |
| 26 | |
Douglas Gregor | 21823bf | 2011-12-20 18:11:52 +0000 | [diff] [blame] | 27 | @class Explicit; |
| 28 | |
| 29 | int *explicit_func(void); |
| 30 | |
| 31 | struct explicit_struct; |
| 32 | |
Douglas Gregor | 074a409 | 2011-12-19 18:19:24 +0000 | [diff] [blame] | 33 | #ifdef __cplusplus |
| 34 | template<typename T> class Vector { |
| 35 | public: |
| 36 | void push_back(const T&); |
| 37 | }; |
| 38 | #endif |
Douglas Gregor | 0abc262 | 2011-12-20 22:06:13 +0000 | [diff] [blame] | 39 | |
| 40 | int ONE; |
| 41 | __import_module__ redecl_merge_top.Explicit; |
| 42 | const int one = ONE; |