diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-11-23 23:12:31 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-11-23 23:12:31 +0000 |
| commit | 0369c57ac6794c82ef3b35f2e6cae9e46debc4f7 (patch) | |
| tree | 8045f39374ddfcbefd84641a38bbe9021cecaf51 /clang/test/Sema/predefined-function.c | |
| parent | e6447ef98952cb38c8fcde42523406bb9dd7359a (diff) | |
| download | bcm5719-llvm-0369c57ac6794c82ef3b35f2e6cae9e46debc4f7.tar.gz bcm5719-llvm-0369c57ac6794c82ef3b35f2e6cae9e46debc4f7.zip | |
Make all the 'redefinition' diagnostics more consistent, and make the
"previously defined here" diagnostics all notes.
llvm-svn: 59920
Diffstat (limited to 'clang/test/Sema/predefined-function.c')
| -rw-r--r-- | clang/test/Sema/predefined-function.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Sema/predefined-function.c b/clang/test/Sema/predefined-function.c index e8c396525d1..2a254cceb7e 100644 --- a/clang/test/Sema/predefined-function.c +++ b/clang/test/Sema/predefined-function.c @@ -4,7 +4,7 @@ char *funk(int format); enum Test {A=-1}; char *funk(enum Test x); -int eli(float b); // expected-error {{previous declaration is here}} +int eli(float b); // expected-note {{previous declaration is here}} int b(int c) {return 1;} int foo(); @@ -16,7 +16,7 @@ int foo() } int bar(); -int bar(int i) // expected-error {{previous definition is here}} +int bar(int i) // expected-note {{previous definition is here}} { return 0; } @@ -26,14 +26,14 @@ int bar() // expected-error {{redefinition of 'bar'}} } #if 0 -int foobar(int); // error {{previous declaration is here}} +int foobar(int); // note {{previous declaration is here}} int foobar() // error {{conflicting types for 'foobar'}} { return 0; } #endif -int wibble(); // expected-error {{previous declaration is here}} +int wibble(); // expected-note {{previous declaration is here}} float wibble() // expected-error {{conflicting types for 'wibble'}} { return 0.0f; |

