| John McCall | 9b0a7ce | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -o %t %s | 
| Fariborz Jahanian | 0f44d81 | 2009-05-12 18:14:29 +0000 | [diff] [blame] | 2 |  | 
|  | 3 | @interface BaseClass { | 
|  | 4 | id _delegate; | 
|  | 5 | } | 
|  | 6 | @end | 
|  | 7 |  | 
|  | 8 | @protocol MyProtocol | 
|  | 9 | @optional | 
|  | 10 | @property(assign) id delegate; | 
|  | 11 | @end | 
|  | 12 |  | 
|  | 13 | @protocol AnotherProtocol | 
|  | 14 | @optional | 
|  | 15 | @property(assign) id myanother; | 
|  | 16 | @end | 
|  | 17 |  | 
|  | 18 | @protocol SubProtocol <MyProtocol> | 
|  | 19 | @property(assign) id another; | 
|  | 20 | @end | 
|  | 21 |  | 
|  | 22 | @interface SubClass : BaseClass <SubProtocol, AnotherProtocol> { | 
|  | 23 | } | 
|  | 24 |  | 
|  | 25 | @end | 
|  | 26 |  | 
|  | 27 | @implementation BaseClass @end | 
|  | 28 |  | 
|  | 29 | @implementation SubClass | 
|  | 30 | @synthesize delegate = _Subdelegate; | 
|  | 31 | @synthesize another; | 
|  | 32 | @synthesize myanother; | 
|  | 33 | @end |