brintos

brintos / llvm-project-archived public Read only

0
0
Text · 618 B · 6471ff2 Raw
26 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s2// expected-no-diagnostics3 4int* global;5 6@interface I7- (void) Meth;8@property int prop;9@property int prop1;10@end11 12@implementation I13+ (void) _defaultMinSize { };14static void _initCommon(void) {15  Class graphicClass;16  [graphicClass _defaultMinSize];17}18 19- (void) Meth { [self Forw]; } // No warning now20- (void) Forw {}21- (int) func { return prop; }  // compiles - synthesized ivar will be accessible here.22- (int)get_g { return global; } // No warning here - synthesized ivar will be accessible here.23@synthesize prop;24@synthesize prop1=global;25@end26