зеркало из https://github.com/microsoft/clang.git
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:
Родитель
13bd4236ab
Коммит
c32bb2affd
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче