]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/synth-provisional-ivars-1.m
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / SemaObjC / synth-provisional-ivars-1.m
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
3 // rdar://8913053
4
5 typedef unsigned char BOOL;
6
7 @interface MailApp
8 {
9   BOOL _isAppleInternal;
10 }
11 @property(assign) BOOL isAppleInternal;
12 @end
13
14 static 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