2012-07-06 06:26:07 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -Wsuper-class-method-mismatch -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2012-07-06 06:26:07 +08:00
|
|
|
// rdar://11793793
|
|
|
|
|
|
|
|
@class NSString;
|
|
|
|
|
|
|
|
@interface Super
|
|
|
|
@property (nonatomic) NSString *thingy;
|
|
|
|
@property () __weak id PROP;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface Sub : Super
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation Sub
|
|
|
|
- (void)setThingy:(NSString *)val
|
|
|
|
{
|
|
|
|
[super setThingy:val];
|
|
|
|
}
|
|
|
|
@synthesize PROP;
|
|
|
|
@end
|