From: Steven Bosscher Date: Tue, 11 Mar 2003 20:00:39 +0000 (+0100) Subject: return-type-3.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54098126af873120609982532ce2153444c431f8;p=gcc.git return-type-3.c: New test. 2003-03-11 Steven Bosscher * gcc.dg/return-type-3.c: New test. From-SVN: r64181 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 80900ccee74..6ec4a1580d0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-03-11 Steven Bosscher + + * gcc.dg/return-type-3.c: New test. + 2003-03-11 D.Venkatasubramanian * gcc.misc-tests/bprob.exp: Disable test cases for h8300-*-* as diff --git a/gcc/testsuite/gcc.dg/return-type-3.c b/gcc/testsuite/gcc.dg/return-type-3.c new file mode 100644 index 00000000000..b6fa16539a4 --- /dev/null +++ b/gcc/testsuite/gcc.dg/return-type-3.c @@ -0,0 +1,14 @@ +/* PR optimization/7189 + This was a missing warning caused by a cfg cleanup after sibling + call optimization. The return clobber insn was cleaned up and + the warning was never issued. */ +/* { dg-do compile } */ +/* { dg-options "-foptimize-sibling-calls -Wreturn-type" } */ + +extern void foo(void); + +int +bar (void) +{ + foo(); +} /* { dg-warning "control reaches end of non-void function" "warning for falling off end of non-void function" } */