diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-22 00:40:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-22 00:40:25 +0000 |
commit | dd1cb5b2ec0b6bd91bb1d9dd0fd6bb20422d9451 (patch) | |
tree | ecb0db31afececbdc388ad2b3fe6cccdb2d89900 /clang/test/SemaCXX/default2.cpp | |
parent | db8d6678e97f4d83a3082efe12671542cc0a1f40 (diff) | |
download | bcm5719-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/SemaCXX/default2.cpp')
-rw-r--r-- | clang/test/SemaCXX/default2.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/default2.cpp b/clang/test/SemaCXX/default2.cpp index d2c44bd998a..e674260680f 100644 --- a/clang/test/SemaCXX/default2.cpp +++ b/clang/test/SemaCXX/default2.cpp @@ -16,7 +16,8 @@ void i() } -int f1(int i, int i, int j) { // expected-error {{redefinition of parameter 'i'}} +int f1(int i, // expected-note {{previous declaration is here}} + int i, int j) { // expected-error {{redefinition of parameter 'i'}} i = 17; return j; } |