X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fredecl-1.c;h=61d6e5b307a2812e094f0f6cd26841aa452af515;hp=cfabc8d25af05d2d95f134c954b3e910f019d78f;hb=8c37d3591562e19a7820e8d8c1186f9e5e5f9d60;hpb=4caff2085622c6813fdbfa4b6a1041f097121454 diff --git a/gcc/testsuite/gcc.dg/redecl-1.c b/gcc/testsuite/gcc.dg/redecl-1.c index cfabc8d25af..61d6e5b307a 100644 --- a/gcc/testsuite/gcc.dg/redecl-1.c +++ b/gcc/testsuite/gcc.dg/redecl-1.c @@ -76,8 +76,8 @@ void test5(void) /* Extern then static, both at file scope. */ extern int test6(int); /* { dg-error "previous" "" } */ -static int test6(int x) -{ return x; } /* { dg-error "follows non-static" } */ +static int test6(int x) /* { dg-error "follows non-static" } */ +{ return x; } /* Extern then static, extern at previous function scope. */ @@ -87,8 +87,8 @@ void prime7(void) extern int test7(int); /* { dg-error "previous" "" } */ } -static int test7(int x) -{ return x; } /* { dg-error "follows non-static" } */ +static int test7(int x) /* { dg-error "follows non-static" } */ +{ return x; } /* Implicit decl then static. */ @@ -98,5 +98,5 @@ void prime8(void) /* { dg-warning "implicit" "implicit" { target *-*-* } 97 } */ } -static int test8(int x) -{ return x; } /* { dg-error "follows non-static" } */ +static int test8(int x) /* { dg-error "follows non-static" } */ +{ return x; }