summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/arg-duplicate.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-22 00:40:25 +0000
committerChris Lattner <sabre@nondot.org>2010-02-22 00:40:25 +0000
commitdd1cb5b2ec0b6bd91bb1d9dd0fd6bb20422d9451 (patch)
treeecb0db31afececbdc388ad2b3fe6cccdb2d89900 /clang/test/Sema/arg-duplicate.c
parentdb8d6678e97f4d83a3082efe12671542cc0a1f40 (diff)
downloadbcm5719-llvm-dd1cb5b2ec0b6bd91bb1d9dd0fd6bb20422d9451.tar.gz
bcm5719-llvm-dd1cb5b2ec0b6bd91bb1d9dd0fd6bb20422d9451.zip
Add 'previous declaration is here' note for param redefinition
errors, e.g.: t.c:1:21: error: redefinition of parameter 'x' int test(int x, int x); ^ t.c:1:14: note: previous declaration is here int test(int x, int x); ^ llvm-svn: 96769
Diffstat (limited to 'clang/test/Sema/arg-duplicate.c')
-rw-r--r--clang/test/Sema/arg-duplicate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Sema/arg-duplicate.c b/clang/test/Sema/arg-duplicate.c
index ca091eb309e..feeb458a3f4 100644
--- a/clang/test/Sema/arg-duplicate.c
+++ b/clang/test/Sema/arg-duplicate.c
@@ -2,7 +2,8 @@
int f3(y, x,
x) // expected-error {{redefinition of parameter}}
- int y, x,
+ int y,
+ x, // expected-note {{previous declaration is here}}
x; // expected-error {{redefinition of parameter}}
{
return x + y;
OpenPOWER on IntegriCloud