]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Another bogus case added
authorKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 21 Mar 2000 19:08:19 +0000 (19:08 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 21 Mar 2000 19:08:19 +0000 (19:08 +0000)
From-SVN: r32673

gcc/testsuite/gcc.dg/noreturn-1.c

index e04f1bcfd6afbb6922f8100302183923cb2c1164..0adfbadf82b1d22a69a85c484423b95a204b0a5c 100644 (file)
@@ -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" } */