blob: ff7b250f809f0c3450d78477c6233550ed046656 [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// 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
Fariborz Jahaniandff3f012011-02-26 01:31:36 +00002// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
3
4// rdar://9056351
5void *sel_registerName(const char *);
6
7@interface NSObject @end
8@class NSString;
9
10@protocol P
11 -(void)ParliamentFunkadelic;
12@end
13
14@interface Foo {
15 NSObject <P> *_dataSource;
16}
17@end
18
19@interface Bar { }
20+(void)WhateverBar:(NSString*)format, ...;
21@end
22
23@implementation Foo
24-(void)WhateverFoo {
25 [Bar WhateverBar:@"ISyncSessionDriverDataSource %@ responded poorly", _dataSource];
26}
27@end