1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s 2// expected-no-diagnostics 3// rdar://8913053 4 5typedef unsigned char BOOL; 6 7@interface MailApp 8{ 9 BOOL _isAppleInternal; 10} 11@property(assign) BOOL isAppleInternal; 12@end 13 14static BOOL isAppleInternal() {return 0; } 15 16@implementation MailApp 17 18- (BOOL)isAppleInternal { 19 return _isAppleInternal; 20} 21 22- (void)setIsAppleInternal:(BOOL)flag { 23 _isAppleInternal= !!flag; 24} 25 26- (void) Meth { 27 self.isAppleInternal = isAppleInternal(); 28} 29@end 30