aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/property-redundant-decl-accessor.m
blob: ffd5129c8e5ae620fdbaa6119eba7f6230c476fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: clang-cc -fsyntax-only -Werror -verify %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