hanchenye-llvm-project/clang/test/SemaObjC/conflict-nonfragile-abi2.m

14 lines
345 B
Mathematica
Raw Normal View History

// RUN: %clang_cc1 -fobjc-nonfragile-abi -verify -fsyntax-only %s
// rdar : // 8225011
int glob;
@interface I
@property int glob; // expected-note {{property declared here}}
@end
@implementation I
- (int) Meth { return glob; } // expected-warning {{'glob' lookup will access the property ivar in nonfragile-abi2 mode}}
@synthesize glob;
@end