summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/property-redundant-decl-accessor.m
blob: 2a24e7e82446d5e878e3f4577a37ea842d685205 (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 %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
OpenPOWER on IntegriCloud