summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/interface-layout-2.m
blob: 02b14035a223bd8fbef128a93a33ca5127c9c9cb (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 %s -fsyntax-only -verify
@interface A
{
  int ivar;
}
@end

@interface B : A
- (int)ivar;
@end

@implementation B
- (int)ivar {
  return ivar;
} 
@end