* gcc.c-torture/compile/20020109-1.c: New test.

From-SVN: r48685
This commit is contained in:
Jakub Jelinek 2002-01-09 19:26:46 +01:00 committed by Jakub Jelinek
parent 2dd1d259ae
commit a2a2c12d8b
2 changed files with 27 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2002-01-09 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/compile/20020109-1.c: New test.
2002-01-08 Kazu Hirata <kazu@hxi.com>
* gcc.c-torture/execute/20020108-1.c: New test.

View file

@ -0,0 +1,23 @@
/* This testcase ICEd when 2 different successors of a basic block
were successfully threaded and try_forward_edges was not expecting
that. */
typedef struct A
{
struct A *s, *t;
unsigned int u;
} A;
void bar (A *);
void
foo (A *x, A *y, A *z)
{
while (y
&& (((y && y->t && y->t->u) ? y : z)->t
== ((x && x->t && x->t->u) ? x : z)->t))
y = y->s;
if (y)
bar (y);
}