diff options
Diffstat (limited to 'clang/test/Sema/block-args.c')
| -rw-r--r-- | clang/test/Sema/block-args.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Sema/block-args.c b/clang/test/Sema/block-args.c index a07c82e75af..970c60d51dd 100644 --- a/clang/test/Sema/block-args.c +++ b/clang/test/Sema/block-args.c @@ -6,7 +6,8 @@ void test() { take(^(int x){}); take(^(int x, int y){}); take(^(int x, int y){}); - take(^(int x, int x){}); // expected-error {{redefinition of parameter 'x'}} + take(^(int x, // expected-note {{previous declaration is here}} + int x){}); // expected-error {{redefinition of parameter 'x'}} take(^(int x) { return x+1; }); |

