]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.dg/20050121-1.c: New test.
authorIan Lance Taylor <ian@airs.com>
Fri, 21 Jan 2005 19:23:06 +0000 (19:23 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 21 Jan 2005 19:23:06 +0000 (19:23 +0000)
From-SVN: r94029

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20050121-1.c [new file with mode: 0644]

index 9c88afbf2efa6f5f7fea84d093496aef716bc2dd..3d569207d8499d6b17623340907961dbced25429 100644 (file)
@@ -1,4 +1,6 @@
-2005-01-21  Ian Lance Taylor  <ian@c2micro.com>
+2005-01-21  Ian Lance Taylor  <ian@airs.com>
+
+       * gcc.dg/20050121-1.c: New test.
 
        PR tree-optimization/13000
        * gcc.dg/20040206-1.c: Change warning to point where function is
diff --git a/gcc/testsuite/gcc.dg/20050121-1.c b/gcc/testsuite/gcc.dg/20050121-1.c
new file mode 100644 (file)
index 0000000..a0b717e
--- /dev/null
@@ -0,0 +1,9 @@
+/* I accidentally broke this while developing a patch for PR 13000,
+   and didn't notice since the testsuite didn't catch it -- ian  */
+/* { dg-do-compile } */
+
+void foo()
+{
+  return;
+  break;       /* { dg-warning "break statement not within" } */
+}