Debian Codegraph @

clang/test/SemaObjC/setter-dotsyntax.m

raw
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 }