summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/property-redundant-decl-accessor.m
blob: 3b0e825b9d8ca1e301acfe01a7b0a073c23e561c (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %clang_cc1 -fsyntax-only -Werror -verify -Wno-objc-root-class %s

@interface MyClass {
    const char	*_myName;
}

@property const char *myName;

- (const char *)myName;
- (void)setMyName:(const char *)name;

@end

@implementation MyClass

@synthesize myName = _myName;

@end