aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSteven Bosscher <s.bosscher@student.tudelft.nl>2003-03-11 21:00:39 +0100
committerSteven Bosscher <steven@gcc.gnu.org>2003-03-11 20:00:39 +0000
commit54098126af873120609982532ce2153444c431f8 (patch)
tree5cdd5f1e4b5eae4d726cd5d608a64d7434f3d72d /gcc
parent8fe857758f7f4c4b77e5fbdf77d3ccaae6acd592 (diff)
downloadgcc-54098126af873120609982532ce2153444c431f8.zip
gcc-54098126af873120609982532ce2153444c431f8.tar.gz
gcc-54098126af873120609982532ce2153444c431f8.tar.bz2
return-type-3.c: New test.
2003-03-11 Steven Bosscher <s.bosscher@student.tudelft.nl> * gcc.dg/return-type-3.c: New test. From-SVN: r64181
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/return-type-3.c14
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 80900cc..6ec4a15 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-11 Steven Bosscher <s.bosscher@student.tudelft.nl>
+
+ * gcc.dg/return-type-3.c: New test.
+
2003-03-11 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
* 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 0000000..b6fa165
--- /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" } */