From: Richard Henderson Date: Sat, 1 Mar 2003 00:53:34 +0000 (-0800) Subject: noreturn-1.c: Move noreturn warning line. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f53c0dc86b5d312743835190536681b50cd911c;p=platform%2Fupstream%2Fgcc.git noreturn-1.c: Move noreturn warning line. * gcc.dg/noreturn-1.c: Move noreturn warning line. * gcc.dg/return-type-1.c: Move control reaches end warning line. From-SVN: r63598 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 96d3d97..1e2a7be 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-02-28 Richard Henderson + + * gcc.dg/noreturn-1.c: Move noreturn warning line. + * gcc.dg/return-type-1.c: Move control reaches end warning line. + 2003-02-28 Geoffrey Keating * gcc.dg/pch/pch.exp: Change .pch to .gch. diff --git a/gcc/testsuite/gcc.dg/noreturn-1.c b/gcc/testsuite/gcc.dg/noreturn-1.c index 6e72f36..3bf62c1 100644 --- a/gcc/testsuite/gcc.dg/noreturn-1.c +++ b/gcc/testsuite/gcc.dg/noreturn-1.c @@ -7,8 +7,8 @@ extern void exit (int); extern void foo1(void) __attribute__ ((__noreturn__)); void foo1(void) -{ -} /* { dg-warning "`noreturn' function does return" "detect falling off end of noreturn" } */ +{ /* { dg-warning "`noreturn' function does return" "detect falling off end of noreturn" } */ +} extern void foo2(void) __attribute__ ((__noreturn__)); void diff --git a/gcc/testsuite/gcc.dg/return-type-1.c b/gcc/testsuite/gcc.dg/return-type-1.c index 2507caf..037dbbf 100644 --- a/gcc/testsuite/gcc.dg/return-type-1.c +++ b/gcc/testsuite/gcc.dg/return-type-1.c @@ -5,5 +5,5 @@ /* { dg-options "-O -Wreturn-type" } */ int foo(void) -{ -} /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */ +{ /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */ +}