bolt/deps/llvm-18.1.8/clang/test/SemaObjC/direct-synthesized-ivar-access.m

15 lines
237 B
Mathematica
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
// expected-no-diagnostics
@interface I {
}
@property int IVAR;
- (int) OK;
@end
@implementation I
- (int) Meth { return _IVAR; }
- (int) OK { return self.IVAR; }
@end