| 1 |
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s |
| 2 |
// expected-no-diagnostics |
| 3 |
|
| 4 |
typedef unsigned char BOOL; |
| 5 |
|
| 6 |
@interface MailApp |
| 7 |
{ |
| 8 |
BOOL _isAppleInternal; |
| 9 |
} |
| 10 |
@property(assign) BOOL isAppleInternal; |
| 11 |
@end |
| 12 |
|
| 13 |
static BOOL isAppleInternal(void) {return 0; } |
| 14 |
|
| 15 |
@implementation MailApp |
| 16 |
|
| 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 |
@end |