1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"id=void*" -D"__declspec(X)=" %t-rw.cpp
4 @protocol NSPortDelegate;
5 @interface NSConnection @end
7 @interface NSMessagePort
11 @implementation NSMessagePort
13 NSConnection <NSPortDelegate> *conn = 0;
14 id <NSPortDelegate> *idc = 0;
18 @protocol Proto1, Proto2;
23 unsigned char func(id<Proto1, Proto2> inProxy);
29 id b = bar((id <Proto>)a);
32 @protocol NSObject @end
35 @protocol CoreDAVTaskManager <NSObject>
36 @property (retain) NSRunLoop *workRunLoop;
39 @protocol some_protocol;
43 id<some_protocol> array[n];