blob: bd58a6acf3c392c6a91b83e202ac74536f65774f [file] [log] [blame]
Fariborz Jahaniandcc8e3f2012-02-04 18:56:43 +00001// RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %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