summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/function-redecl.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/function-redecl.c')
-rw-r--r--clang/test/Sema/function-redecl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/function-redecl.c b/clang/test/Sema/function-redecl.c
index daa5044dd08..e8252db343d 100644
--- a/clang/test/Sema/function-redecl.c
+++ b/clang/test/Sema/function-redecl.c
@@ -46,7 +46,7 @@ extern void g3(int); // expected-note{{previous declaration is here}}
static void g3(int x) { } // expected-error{{static declaration of 'g3' follows non-static declaration}}
void test2() {
- extern int f2; // expected-note{{previous definition is here}}
+ extern int f2; // expected-note 2 {{previous definition is here}}
{
void f2(int); // expected-error{{redefinition of 'f2' as different kind of symbol}}
}
@@ -54,7 +54,7 @@ void test2() {
{
int f2;
{
- void f2(int); // okay
+ void f2(int); // expected-error{{redefinition of 'f2' as different kind of symbol}}
}
}
}
OpenPOWER on IntegriCloud