diff options
| author | Richard Henderson <rth@redhat.com> | 2003-02-28 16:53:34 -0800 |
|---|---|---|
| committer | Richard Henderson <rth@gcc.gnu.org> | 2003-02-28 16:53:34 -0800 |
| commit | 3f53c0dc86b5d312743835190536681b50cd911c (patch) | |
| tree | 12b8add5b80bf88c7cbf1d1419958bbd04d48040 | |
| parent | d5b11fba00998a99409f6a228ee50501684ad93b (diff) | |
| download | gcc-3f53c0dc86b5d312743835190536681b50cd911c.zip gcc-3f53c0dc86b5d312743835190536681b50cd911c.tar.gz gcc-3f53c0dc86b5d312743835190536681b50cd911c.tar.bz2 | |
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
| -rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.dg/noreturn-1.c | 4 | ||||
| -rw-r--r-- | 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 96d3d97..1e2a7be 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-02-28 Richard Henderson <rth@redhat.com> + + * 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 <geoffk@apple.com> * 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" } */ +} |
