aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/20050121-1.c9
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9c88afb..3d56920 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..a0b717e
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20050121-1.c
@@ -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" } */
+}