Add testcase for PR57478

From-SVN: r199531
This commit is contained in:
Marek Polacek 2013-05-31 10:58:52 +00:00 committed by Marek Polacek
parent e3530904e7
commit ccc20e5ca1
2 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2013-05-31 Marek Polacek <polacek@redhat.com>
PR tree-optimization/57478
PR tree-optimization/57453
* gcc.dg/torture/pr57478.c: New test.
2013-05-31 Tobias Burnus <burnus@net-b.de>
PR fortran/57456

View File

@ -0,0 +1,21 @@
/* { dg-do compile } */
typedef struct Node Node;
struct Node
{
Node *Pred, *Suc;
Node *SubBestPred;
Node *SubBestSuc;
};
void
foo (Node *N)
{
do
{
N->SubBestPred = N->Pred;
N->SubBestSuc = N->Suc;
}
while (N = N->Suc);
}