diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-05-12 18:14:29 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-05-12 18:14:29 +0000 |
| commit | 0f44d81a4cc8d6238ae9165ad566b564a76715e3 (patch) | |
| tree | 0c7fa7e2fc8503db02224ca394ee0a94fd9eabc8 /clang/test | |
| parent | 3c2775f0b038b27fd5e5b279a4c4d391278c29bf (diff) | |
| download | bcm5719-llvm-0f44d81a4cc8d6238ae9165ad566b564a76715e3.tar.gz bcm5719-llvm-0f44d81a4cc8d6238ae9165ad566b564a76715e3.zip | |
Patch to implement ivar synthesis of properties declared in protocols
only and used in class imllementations (objc2 Nonfragile ABI specific).
llvm-svn: 71571
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGenObjC/protocol-property-synth.m | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/protocol-property-synth.m b/clang/test/CodeGenObjC/protocol-property-synth.m new file mode 100644 index 00000000000..e91f3552310 --- /dev/null +++ b/clang/test/CodeGenObjC/protocol-property-synth.m @@ -0,0 +1,33 @@ +// RUN: clang-cc -triple x86_64-apple-darwin10 -emit-llvm -o %t %s + +@interface BaseClass { + id _delegate; +} +@end + +@protocol MyProtocol +@optional +@property(assign) id delegate; +@end + +@protocol AnotherProtocol +@optional +@property(assign) id myanother; +@end + +@protocol SubProtocol <MyProtocol> +@property(assign) id another; +@end + +@interface SubClass : BaseClass <SubProtocol, AnotherProtocol> { +} + +@end + +@implementation BaseClass @end + +@implementation SubClass +@synthesize delegate = _Subdelegate; +@synthesize another; +@synthesize myanother; +@end |

