xref: /llvm-project/clang/test/SemaObjC/direct-synthesized-ivar-access.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2// expected-no-diagnostics
3
4@interface I {
5}
6
7@property int IVAR;
8- (int) OK;
9@end
10
11@implementation I
12- (int) Meth { return _IVAR; }
13- (int) OK { return self.IVAR; }
14@end
15