aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2003-05-03 08:42:58 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2003-05-03 08:42:58 +0000
commit4dc27b4b677191a4fca866eef939c80db8db7cb7 (patch)
treea95fc3c1e3ee4947fcefb295cd4b0046ecd9fcb6 /gcc
parent969c6c43acf02fa2c65bf9594c3a78a9c4a2c5c8 (diff)
downloadgcc-4dc27b4b677191a4fca866eef939c80db8db7cb7.zip
gcc-4dc27b4b677191a4fca866eef939c80db8db7cb7.tar.gz
gcc-4dc27b4b677191a4fca866eef939c80db8db7cb7.tar.bz2
* gcc.c-torture/compile/20030503-1.c: New test.
From-SVN: r66421
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20030503-1.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index db3bb0a..1f0db70 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2003-05-03 Richard Sandiford <rsandifo@redhat.com>
+
+ * gcc.c-torture/compile/20030503-1.c: New test.
+
2003-05-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.dg/lookup/using5.C: Fix testcase error.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030503-1.c b/gcc/testsuite/gcc.c-torture/compile/20030503-1.c
new file mode 100644
index 0000000..3c2b28d
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20030503-1.c
@@ -0,0 +1,12 @@
+void foo ()
+{
+ if (1)
+ goto foo;
+ else
+ for (;;)
+ {
+ foo:
+ bar ();
+ return;
+ }
+}