diff options
Diffstat (limited to 'clang/test/FixIt/fixit-interface-as-param.m')
-rw-r--r-- | clang/test/FixIt/fixit-interface-as-param.m | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/clang/test/FixIt/fixit-interface-as-param.m b/clang/test/FixIt/fixit-interface-as-param.m index 75da5720d7f..748d83e0700 100644 --- a/clang/test/FixIt/fixit-interface-as-param.m +++ b/clang/test/FixIt/fixit-interface-as-param.m @@ -1,11 +1,20 @@ -// RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fdiagnostics-parseable-fixits -x objective-c %s 2>&1 | FileCheck %s +// RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fblocks -fdiagnostics-parseable-fixits -x objective-c %s 2>&1 | FileCheck %s // rdar://11311333 @interface NSView @end @interface INTF - (void) drawRect : inView:(NSView)view; +- (void)test:(NSView )a; +- (void)foo; @end // CHECK: {7:35-7:35}:"*" - +// CHECK: {8:21-8:21}:"*" +@implementation INTF +-(void)foo { + ^(NSView view) { + }; +} +@end +// CHECK: {16:11-16:11}:"*" |