diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-01 19:36:41 +0000 | 
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-01 19:36:41 +0000 | 
| commit | 61a312413c82aa23ef63467cde87f6de1ce8724f (patch) | |
| tree | 92cb2ca63a66e4d46b7b6b7d9919b2bfb0b8dac2 /clang/test/CodeGenObjCXX/property-objects.mm | |
| parent | df6b67bf852b6e2a12eb6f0963e85cc96c596fcf (diff) | |
| download | bcm5719-llvm-61a312413c82aa23ef63467cde87f6de1ce8724f.tar.gz bcm5719-llvm-61a312413c82aa23ef63467cde87f6de1ce8724f.zip  | |
Fix IRGen when property-dot syntax used to access
a c++ class object 'ivar'. Fixes radar 8366604.
llvm-svn: 112729
Diffstat (limited to 'clang/test/CodeGenObjCXX/property-objects.mm')
| -rw-r--r-- | clang/test/CodeGenObjCXX/property-objects.mm | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjCXX/property-objects.mm b/clang/test/CodeGenObjCXX/property-objects.mm index 662dacc55d7..724cf682682 100644 --- a/clang/test/CodeGenObjCXX/property-objects.mm +++ b/clang/test/CodeGenObjCXX/property-objects.mm @@ -25,6 +25,8 @@ struct CGRect {  - (void)setFrame:(CGRect)frameRect;  - (CGRect)frame;  - (void) initWithOwner; +- (struct CGRect)extent; +- (void)dealloc;  @end  @implementation I @@ -40,6 +42,12 @@ struct CGRect {    labelLayerFrame = self.bounds;    _labelLayer.frame = labelLayerFrame;  } +// rdar://8366604 +- (void)dealloc +  { +      CGRect cgrect = self.extent; +  } +- (struct CGRect)extent {return bounds;}  @end  int main() {  | 

