aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/predefined-function.c
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-01-16 15:01:34 +0000
committerSteve Naroff <snaroff@apple.com>2008-01-16 15:01:34 +0000
commit837618c0945e1f67ec1e39000c568a1fa857a5a9 (patch)
treeccf3ab3f75833553d7c9bab97b9334ab97a173cd /test/Sema/predefined-function.c
parent9849185956f2dc24278284e4e110baf3b4b92850 (diff)
Sema::MergeFunctionDecl()...make sure diagnostic is accurate (wrt function declarations/definitions). Patch by Carl Lewis!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/predefined-function.c')
-rw-r--r--test/Sema/predefined-function.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/Sema/predefined-function.c b/test/Sema/predefined-function.c
index d554b8faa8..1dcd1d38a2 100644
--- a/test/Sema/predefined-function.c
+++ b/test/Sema/predefined-function.c
@@ -4,13 +4,13 @@ char *funk(int format);
enum Test {A=-1};
char *funk(enum Test x);
-int eli(float b); // expected-error {{previous definition is here}}
+int eli(float b); // expected-error {{previous declaration is here}}
int b(int c) {return 1;}
int foo();
int foo()
{
- int eli(int (int)); // expected-error {{redefinition of 'eli'}}
+ int eli(int (int)); // expected-error {{conflicting types for 'eli'}}
eli(b);
return 0;
}
@@ -20,19 +20,19 @@ int bar(int i) // expected-error {{previous definition is here}}
{
return 0;
}
-int bar() // expected-error {{redefinition of 'bar'}}
+int bar() // expected-error {{redefinition of 'bar'}} expected-error {{conflicting types for 'bar'}}
{
return 0;
}
-int foobar(int); // expected-error {{previous definition is here}}
-int foobar() // expected-error {{redefinition of 'foobar'}}
+int foobar(int); // expected-error {{previous declaration is here}}
+int foobar() // expected-error {{conflicting types for 'foobar'}}
{
return 0;
}
-int wibble(); // expected-error {{previous definition is here}}
-float wibble() // expected-error {{redefinition of 'wibble'}}
+int wibble(); // expected-error {{previous declaration is here}}
+float wibble() // expected-error {{conflicting types for 'wibble'}}
{
return 0.0f;
}