27 lines · plain
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.cpp2// RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp3 4void *sel_registerName(const char *);5 6@interface NSObject @end7@class NSString;8 9@protocol P10 -(void)ParliamentFunkadelic;11@end12 13@interface Foo {14 NSObject <P> *_dataSource;15}16@end17 18@interface Bar { }19+(void)WhateverBar:(NSString*)format, ...;20@end21 22@implementation Foo23-(void)WhateverFoo {24 [Bar WhateverBar:@"ISyncSessionDriverDataSource %@ responded poorly", _dataSource];25}26@end27