llvm-for-llvmta/tools/clang/test/SemaObjC/interface-layout-2.m

18 lines
197 B
Mathematica
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 %s -fsyntax-only -verify
// expected-no-diagnostics
@interface A
{
int ivar;
}
@end
@interface B : A
- (int)ivar;
@end
@implementation B
- (int)ivar {
return ivar;
}
@end