1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 @interface NSString @end 4 5 typedef const struct __CFString * CFStringRef; 6 const NSString* fRef; 7 8 CFStringRef func() { 9 return reinterpret_cast<CFStringRef>(fRef); 10 } 11 12 CFStringRef fRef1; 13 14 const NSString* func1() { 15 return reinterpret_cast<const NSString*>(fRef1); 16 } 17 18 @interface I @end 19 const I *fRef2; 20 21 const NSString* func2() { 22 return reinterpret_cast<const NSString*>(fRef2); 23 } 24