summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobertl <robertl@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-04 03:02:24 +0000
committerrobertl <robertl@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-04 03:02:24 +0000
commit187cdc0268474120a8ce52c455f8a25f7ff372eb (patch)
treefc6c0c8070b38663dfb5926ba5d5fdb35db0d049
parent050ad7044f53b040c131f1dce34f15dc3f715a99 (diff)
downloadgcc-187cdc0268474120a8ce52c455f8a25f7ff372eb.tar.gz
* gcc.dg/20000503-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33656 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/20000503-1.c17
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 33cac7c238d..b43c8a3bcf5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-03 Robert Lipe <robertlipe@usa.net>
+
+ * gcc.dg/20000503-1.c: New test.
+
2000-05-02 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/compile/20000502-1.c: New test.
diff --git a/gcc/testsuite/gcc.dg/20000503-1.c b/gcc/testsuite/gcc.dg/20000503-1.c
new file mode 100644
index 00000000000..a5900b83715
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20000503-1.c
@@ -0,0 +1,17 @@
+/* { dg-do compile { target i?86-*-linux* i?86-*-sco3.2v5* i?86-*-sysv* } } */
+/* { dg-options "-O2 -gdwarf -g2" } */
+
+/* Distilled from GCC's stmt.c. Caused abort in dwarf-1 code. */
+
+static void
+expand_nl_goto_receiver ()
+{
+{
+static struct elims {int from, to;} elim_regs[] = {{ 16, 7}, { 16, 6}, { 20, 7},{ 20, 6}};
+ int i;
+
+ for (i = 0; i < sizeof elim_regs / sizeof elim_regs[0]; i++)
+ if (elim_regs[i].from == 16 && elim_regs[i].to == 6)
+ break;
+ }
+}