John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o %t %s |
Fariborz Jahanian | 1819188 | 2009-03-31 18:11:23 +0000 | [diff] [blame] | 2 | |
NAKAMURA Takumi | 92b7c39 | 2012-09-12 10:45:52 +0000 | [diff] [blame] | 3 | // PR13820 |
| 4 | // REQUIRES: LP64 |
| 5 | |
Fariborz Jahanian | 1819188 | 2009-03-31 18:11:23 +0000 | [diff] [blame] | 6 | @interface I |
Fariborz Jahanian | 1819188 | 2009-03-31 18:11:23 +0000 | [diff] [blame] | 7 | @property int IP; |
| 8 | @end |
| 9 | |
| 10 | @implementation I |
| 11 | @synthesize IP; |
| 12 | - (int) Meth { |
| 13 | return IP; |
| 14 | } |
| 15 | @end |
Fariborz Jahanian | 99eee36 | 2009-04-01 19:37:34 +0000 | [diff] [blame] | 16 | |
| 17 | // Test for synthesis of ivar for a property |
| 18 | // declared in continuation class. |
| 19 | @interface OrganizerViolatorView |
| 20 | @end |
| 21 | |
| 22 | @interface OrganizerViolatorView() |
| 23 | @property (retain) id bindingInfo; |
| 24 | @end |
| 25 | |
| 26 | @implementation OrganizerViolatorView |
| 27 | @synthesize bindingInfo; |
| 28 | @end |
Daniel Dunbar | 45e8423 | 2009-10-27 19:21:30 +0000 | [diff] [blame] | 29 | |
| 30 | // <rdar://problem/7336352> [irgen] crash in synthesized property construction |
| 31 | |
| 32 | @interface I0 @end |
| 33 | @protocol P0 @end |
| 34 | @interface I1 { |
| 35 | I0<P0> *iv0; |
| 36 | } |
| 37 | @property (assign, readwrite) id p0; |
| 38 | @end |
| 39 | @implementation I1 |
| 40 | @synthesize p0 = iv0; |
| 41 | @end |