Add test case for <rdar://problem/8891119>. In

earlier revisions Clang was incorrectly warning
about an incomplete @implementation when a property
was getting synthesized.  This got fixed somewhere
down the line.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123939 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2011-01-20 19:45:14 +00:00
Родитель 13bd4236ab
Коммит c32bb2affd
1 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -78,3 +78,20 @@
// <rdar://problem/7680391> - Handle nameless categories with no name that refer
// to an undefined class
@interface RDar7680391 () @end // expected-error{{cannot find interface declaration}}
// <rdar://problem/8891119> - Handle @synthesize being used in conjunction
// with explicitly declared accessor.
@interface RDar8891119 {
id _name;
}
@end
@interface RDar8891119 ()
- (id)name;
@end
@interface RDar8891119 ()
@property (copy) id name;
@end
@implementation RDar8891119
@synthesize name = _name;
@end