aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/predefined-function.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-23 23:12:31 +0000
committerChris Lattner <sabre@nondot.org>2008-11-23 23:12:31 +0000
commit5f4a6829dc58cab2f76e2b98492859aa3b91e3f2 (patch)
treec2c13ad4ad80fdb53222315c85fa883abf36becc /test/Sema/predefined-function.c
parentb8b96aff63e24ff1509f112de871f697aaea55f9 (diff)
Make all the 'redefinition' diagnostics more consistent, and make the
"previously defined here" diagnostics all notes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/predefined-function.c')
-rw-r--r--test/Sema/predefined-function.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Sema/predefined-function.c b/test/Sema/predefined-function.c
index e8c396525d..2a254cceb7 100644
--- a/test/Sema/predefined-function.c
+++ b/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;