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 | 98c9d1fa3776204a94c013f1dc25f62d75c00573 (patch) | |
tree | ad93d588b1d304cf9d8b1ef0409aba13c0972cdd /test/CodeGenObjCXX | |
parent | 0ab1e9f672a86cf3f094780d99251553a2b69fc7 (diff) |
Fix IRGen when property-dot syntax used to access
a c++ class object 'ivar'. Fixes radar 8366604.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112729 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjCXX')
-rw-r--r-- | test/CodeGenObjCXX/property-objects.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenObjCXX/property-objects.mm b/test/CodeGenObjCXX/property-objects.mm index 662dacc55d..724cf68268 100644 --- a/test/CodeGenObjCXX/property-objects.mm +++ b/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() { |