]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/property-redundant-decl-accessor.m
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / SemaObjC / property-redundant-decl-accessor.m
1 // RUN: %clang_cc1 -fsyntax-only -Werror -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
3
4 @interface MyClass {
5     const char  *_myName;
6 }
7
8 @property const char *myName;
9
10 - (const char *)myName;
11 - (void)setMyName:(const char *)name;
12
13 @end
14
15 @implementation MyClass
16
17 @synthesize myName = _myName;
18
19 @end