clang/test/FixIt/fixit-interface-as-param.m
raw| 1 | // RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fblocks -fdiagnostics-parseable-fixits -x objective-c %s 2>&1 | FileCheck %s |
| 2 | |
| 3 | @interface NSView @end |
| 4 | |
| 5 | @interface INTF |
| 6 | - (void) drawRect : inView:(NSView)view; |
| 7 | - (void)test:(NSView )a; |
| 8 | - (void)foo; |
| 9 | @end |
| 10 | |
| 11 | // CHECK: {6:35-6:35}:"*" |
| 12 | // CHECK: {7:21-7:21}:"*" |
| 13 | @implementation INTF |
| 14 | -(void)foo { |
| 15 | ^(NSView view) { |
| 16 | }; |
| 17 | } |
| 18 | @end |
| 19 | // CHECK: {15:11-15:11}:"*" |