repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
setter-dotsyntax.m
blob
7e205ca756182c908d8d6cbe2e7adca6b71da049
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// expected-no-diagnostics
3
// rdar://8528170
4
5
@interface NSObject @end
6
7
@protocol MyProtocol
8
- (int) level;
9
- (void) setLevel:(int)inLevel;
10
@end
11
12
@interface MyClass : NSObject <MyProtocol>
13
@end
14
15
int main (void)
16
{
17
id<MyProtocol> c;
18
c.level = 10;
19
return 0;
20
}