* gcc.dg/noreturn-1.c: Check for another bogus noreturn case.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 21 Mar 2000 17:02:57 +0000 (17:02 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 21 Mar 2000 17:02:57 +0000 (17:02 +0000)
From-SVN: r32670

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

index 3e602602b47a9954d3184de64735e444c8c5aec6..228604de8edb4edbf67a139c70d8cac4d59537cf 100644 (file)
@@ -1,3 +1,7 @@
+2000-03-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * gcc.dg/noreturn-1.c: Check for another bogus noreturn case.
+
 2000-03-19  Richard Henderson  <rth@cygnus.com>
 
        * gcc.c-torture/compile/20000314-2.c: Use __SIZE_TYPE__, not size_t.
index 3d68cbcf5001abc51d46dce548d3ed00da33a6f4..e04f1bcfd6afbb6922f8100302183923cb2c1164 100644 (file)
@@ -1,6 +1,6 @@
 /* Check for various valid and erroneous "noreturn" cases. */
 /* { dg-do compile } */
-/* { dg-options "-O -Wmissing-noreturn" } */
+/* { dg-options "-O2 -Wmissing-noreturn" } */
 
 extern void foo1(void) __attribute__ ((__noreturn__));
 void
@@ -41,3 +41,10 @@ foo6(void)
 {
   return;
 } /* { dg-bogus "warning:" "this function should not get any warnings" } */
+
+extern void foo7(void);
+void
+foo7(void)
+{
+  foo6();
+} /* { dg-bogus "warning:" "this function should not get any warnings" } */