diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-15 22:42:59 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-15 22:42:59 +0000 |
commit | dddf158c195c96f6e9e227d7afce636e634f9652 (patch) | |
tree | 6e27609953d4f1e7065197feb7437f4349e936f3 /clang/test | |
parent | a3e64c17919435da37bfc7f4cc04c70f3c6fcb78 (diff) | |
download | bcm5719-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.mm | 2 |
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 |