diff options
| author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-21 19:08:19 +0000 |
|---|---|---|
| committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-21 19:08:19 +0000 |
| commit | 7a69fd441f644eefe6ce20c2c7ac2255b0ecb7b4 (patch) | |
| tree | a5a0f62b27b995cc49a25c3168245000e525a1d3 | |
| parent | 616115f4af09027865cc1aadd467f9e0b2a20d19 (diff) | |
| download | ppe42-gcc-7a69fd441f644eefe6ce20c2c7ac2255b0ecb7b4.tar.gz ppe42-gcc-7a69fd441f644eefe6ce20c2c7ac2255b0ecb7b4.zip | |
Another bogus case added
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32673 138bc75d-0d04-0410-961f-82ee72b054a4
| -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 e04f1bcfd6a..0adfbadf82b 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" } */ |

