aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/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/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/function.c')
-rw-r--r--test/Sema/function.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c
index 152205dd24..7c67bbaa63 100644
--- a/test/Sema/function.c
+++ b/test/Sema/function.c
@@ -6,15 +6,15 @@ void f(double (* restrict a)[5]);
int foo (__const char *__path);
int foo(__const char *__restrict __file);
-void func(const char*); //expected-error{{previous declaration is here}}
-void func(char*); //expected-error{{conflicting types for 'func'}}
+void func(const char*); // expected-note {{previous declaration is here}}
+void func(char*); // expected-error{{conflicting types for 'func'}}
void g(int (*)(const void **, const void **));
void g(int (*compar)()) {
}
-void h(); //expected-error{{previous declaration is here}}
-void h (const char *fmt, ...) {} //expected-error{{conflicting types for 'h'}}
+void h(); // expected-note {{previous declaration is here}}
+void h (const char *fmt, ...) {} // expected-error{{conflicting types for 'h'}}
// PR1965
int t5(b); // expected-error {{parameter list without types}}