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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
setter-dotsyntax.m
blob
32f51f965cbf5cae2a4eae873398e6a4c9fd0345
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// expected-no-diagnostics
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 (void)
15
{
16
id<MyProtocol> c;
17
c.level = 10;
18
return 0;
19
}