diff options
author | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-03-21 19:08:19 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-03-21 19:08:19 +0000 |
commit | 485976a9f587ade39ad0cf14cbbab518221003db (patch) | |
tree | a5a0f62b27b995cc49a25c3168245000e525a1d3 | |
parent | 4287843d628766583f57f41f445cc32f480389d7 (diff) | |
download | gcc-485976a9f587ade39ad0cf14cbbab518221003db.zip gcc-485976a9f587ade39ad0cf14cbbab518221003db.tar.gz gcc-485976a9f587ade39ad0cf14cbbab518221003db.tar.bz2 |
Another bogus case added
From-SVN: r32673
-rw-r--r-- | gcc/testsuite/gcc.dg/noreturn-1.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/noreturn-1.c b/gcc/testsuite/gcc.dg/noreturn-1.c index e04f1bc..0adfbad 100644 --- a/gcc/testsuite/gcc.dg/noreturn-1.c +++ b/gcc/testsuite/gcc.dg/noreturn-1.c @@ -48,3 +48,10 @@ foo7(void) { foo6(); } /* { dg-bogus "warning:" "this function should not get any warnings" } */ + +extern void foo8(void) __attribute__ ((__noreturn__)); +void +foo8(void) +{ + foo7(); +} /* { dg-warning "`noreturn' function does return" "detect return from tail call" } */ |