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 | 0313f441b72ef6b69a93e5003c684b01cb72fd46 (patch) | |
tree | 911c927aeadf8b59bf327c867560d51bebbc6a78 /test/SemaObjCXX/property-synthesis-error.mm | |
parent | 06205ca78ca2fd4384b237f120ec66614df0d9fc (diff) | |
download | clang-0313f441b72ef6b69a93e5003c684b01cb72fd46.tar.gz clang-0313f441b72ef6b69a93e5003c684b01cb72fd46.tar.bz2 clang-0313f441b72ef6b69a93e5003c684b01cb72fd46.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116631 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjCXX/property-synthesis-error.mm')
-rw-r--r-- | test/SemaObjCXX/property-synthesis-error.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaObjCXX/property-synthesis-error.mm b/test/SemaObjCXX/property-synthesis-error.mm index 59e17b2a8d..c7a279cfd7 100644 --- a/test/SemaObjCXX/property-synthesis-error.mm +++ b/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 |