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
6 + (void)clsMethod:(int*)arg;
12 @interface Foo : NSObject
13 - (void)getDonuts:(void (^)(NSDictionary *, NSError *))replyBlock;
14 - (void)getCake:(int*)arg, ...;
19 - (void)getDonuts:(void (^)(NSDictionary *))replyBlock;
20 - (void)getCake:(float*)arg, ...;
21 + (void)clsMethod:(float*)arg;
29 - (void)getDonuts:(void (^)(NSDictionary *, NSError *))replyBlock {
30 [(id) 0 getDonuts:^(NSDictionary *replyDict) { }];
33 - (void) getCake:(int*)arg, ... {
34 [(id)0 getCake: &g, 1,3.14];
38 void func( Class c, float g ) {
42 @protocol NSKeyedArchiverDelegate @end
44 @interface NSKeyedArchiver
45 @property (assign) id <NSKeyedArchiverDelegate> delegate;
48 @interface NSConnection
49 @property (assign) id delegate;
54 @interface AppDelegate
57 AppDelegate* GetDelegate(void)
59 return [NSApp delegate];