diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-25 21:56:43 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-03-25 21:56:43 +0000 |
commit | 1b23fe61cf4437668280212d0ad6cb7196f51529 (patch) | |
tree | 178d383caddaf6f7b506d090a526b0a8082a0ab0 /test/CodeGenObjC/complex-property.m | |
parent | 014a358058fab46a84718b1424e40ad5a8068827 (diff) |
Fix a code gen. bug involving generation of getter method
from properties of _Complex type. (radar 7351147).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/complex-property.m')
-rw-r--r-- | test/CodeGenObjC/complex-property.m | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/test/CodeGenObjC/complex-property.m b/test/CodeGenObjC/complex-property.m index bd3bfea94b..5a2b78b597 100644 --- a/test/CodeGenObjC/complex-property.m +++ b/test/CodeGenObjC/complex-property.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix LP64 %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -emit-llvm -o - %s | FileCheck -check-prefix LP64 %s // rdar: // 7351147 @interface A @@ -15,3 +15,18 @@ void f0(A *a) { // CHECK-LP64: internal global [13 x i8] c"COMPLEX_PROP // CHECK-LP64: internal global [17 x i8] c"setCOMPLEX_PROP + +// rdar: // 7351147 +@interface B +@property (assign) _Complex float f_complex_ivar; +@end + +@implementation B + +@synthesize f_complex_ivar = _f_complex_ivar; +-(void) unary_f_complex: (_Complex float) a0 { + self.f_complex_ivar = a0; +} + +@end + |