summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-21 17:02:57 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-21 17:02:57 +0000
commita0eb4c06bcfad07acdfcc37375361f79119d215e (patch)
treef71c75a12febe0f04541ba490c340b6afef8ae7b /gcc
parent13d8774b6b75f1cbd960b4dd9388b7037d9146aa (diff)
downloadppe42-gcc-a0eb4c06bcfad07acdfcc37375361f79119d215e.tar.gz
ppe42-gcc-a0eb4c06bcfad07acdfcc37375361f79119d215e.zip
* gcc.dg/noreturn-1.c: Check for another bogus noreturn case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32670 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/noreturn-1.c9
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3e602602b47..228604de8ed 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/noreturn-1.c b/gcc/testsuite/gcc.dg/noreturn-1.c
index 3d68cbcf500..e04f1bcfd6a 100644
--- a/gcc/testsuite/gcc.dg/noreturn-1.c
+++ b/gcc/testsuite/gcc.dg/noreturn-1.c
@@ -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" } */
OpenPOWER on IntegriCloud