2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2008-12-17 22:13:49 +08:00
|
|
|
@interface A
|
|
|
|
{
|
|
|
|
int ivar;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface B : A
|
|
|
|
- (int)ivar;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation B
|
|
|
|
- (int)ivar {
|
|
|
|
return ivar;
|
|
|
|
}
|
|
|
|
@end
|