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