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"__declspec(X)=" %t-rw.cpp 3 4typedef void * id; 5 6@protocol foo 7@end 8 9@interface CL 10{ 11 id <foo> changeSource; 12 CL <foo>* changeSource1; 13} 14@end 15 16typedef struct x 17{ 18 id <foo> changeSource; 19} x; 20 21