summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-10-15 22:42:59 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-10-15 22:42:59 +0000
commitdddf158c195c96f6e9e227d7afce636e634f9652 (patch)
tree6e27609953d4f1e7065197feb7437f4349e936f3 /clang/test
parenta3e64c17919435da37bfc7f4cc04c70f3c6fcb78 (diff)
downloadbcm5719-llvm-dddf158c195c96f6e9e227d7afce636e634f9652.tar.gz
bcm5719-llvm-dddf158c195c96f6e9e227d7afce636e634f9652.zip
Check for ivar being a C++ object before attempting to
find a copy constructor/assignment operator used in getter/setter synthesis. This removes an unintended diagnostics and makes objc++ consistant with objective-c. // rdar: //8550657. llvm-svn: 116631
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaObjCXX/property-synthesis-error.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaObjCXX/property-synthesis-error.mm b/clang/test/SemaObjCXX/property-synthesis-error.mm
index 59e17b2a8d4..c7a279cfd7a 100644
--- a/clang/test/SemaObjCXX/property-synthesis-error.mm
+++ b/clang/test/SemaObjCXX/property-synthesis-error.mm
@@ -22,7 +22,7 @@
@implementation MyClass
-@synthesize array=_array; // expected-error {{assigning to 'NSMutableArray *' from incompatible type 'NSArray *'}}
+@synthesize array=_array;
@end
OpenPOWER on IntegriCloud