• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15int main ()
16{
17    id<MyProtocol> c;
18    c.level = 10;
19    return 0;
20}
21