brintos

brintos / llvm-project-archived public Read only

0
0
Text · 489 B · 4407660 Raw
29 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s2// expected-no-diagnostics3 4typedef unsigned char BOOL;5 6@interface MailApp7{8  BOOL _isAppleInternal;9}10@property(assign) BOOL isAppleInternal;11@end12 13static BOOL isAppleInternal(void) {return 0; }14 15@implementation MailApp16 17- (BOOL)isAppleInternal {18    return _isAppleInternal;19}20 21- (void)setIsAppleInternal:(BOOL)flag {22    _isAppleInternal= !!flag;23}24 25- (void) Meth {26    self.isAppleInternal = isAppleInternal();27}28@end29