summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/synthesized-ivar.m
blob: 58bcf40a58602db70c9be1cc159e644c3a9f446f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -fsyntax-only -fobjc-nonfragile-abi -verify %s
@interface I
{
}
@property int IP;
@end

@implementation I
@synthesize IP;
- (int) Meth {
   return IP;
}
@end

// rdar: // 7823675
int f0(I *a) { return a->IP; } // expected-error {{instance variable 'IP' is protected}}
OpenPOWER on IntegriCloud