From 3f53c0dc86b5d312743835190536681b50cd911c Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 28 Feb 2003 16:53:34 -0800 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/noreturn-1.c | 4 ++-- gcc/testsuite/gcc.dg/return-type-1.c | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 96d3d97335a..1e2a7be4945 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 6e72f362bf3..3bf62c15b40 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 2507cafa5e4..037dbbf0823 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" } */ +} -- 2.30.2