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
5 @protocol NSPortDelegate;
6 @interface NSConnection @end
8 @interface NSMessagePort
12 @implementation NSMessagePort
14 NSConnection <NSPortDelegate> *conn = 0;
15 id <NSPortDelegate> *idc = 0;
20 @protocol Proto1, Proto2;
25 unsigned char func(id<Proto1, Proto2> inProxy);
31 id b = bar((id <Proto>)a);
35 @protocol NSObject @end
38 @protocol CoreDAVTaskManager <NSObject>
39 @property (retain) NSRunLoop *workRunLoop;
44 @protocol some_protocol;
48 id<some_protocol> array[n];