1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks -Wno-objc-root-class %s
2 // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks -Wno-objc-root-class %s
3 // expected-no-diagnostics
8 + (void)clsMethod:(int*)arg;
14 @interface Foo : NSObject
15 - (void)getDonuts:(void (^)(NSDictionary *, NSError *))replyBlock;
16 - (void)getCake:(int*)arg, ...;
21 - (void)getDonuts:(void (^)(NSDictionary *))replyBlock;
22 - (void)getCake:(float*)arg, ...;
23 + (void)clsMethod:(float*)arg;
31 - (void)getDonuts:(void (^)(NSDictionary *, NSError *))replyBlock {
32 [(id) 0 getDonuts:^(NSDictionary *replyDict) { }];
35 - (void) getCake:(int*)arg, ... {
36 [(id)0 getCake: &g, 1,3.14];
40 void func( Class c, float g ) {
45 @protocol NSKeyedArchiverDelegate @end
47 @interface NSKeyedArchiver
48 @property (assign) id <NSKeyedArchiverDelegate> delegate;
51 @interface NSConnection
52 @property (assign) id delegate;
57 @interface AppDelegate
60 AppDelegate* GetDelegate()
62 return [NSApp delegate];