Add testcase for PR57478
From-SVN: r199531
This commit is contained in:
parent
e3530904e7
commit
ccc20e5ca1
@ -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
|
||||
|
21
gcc/testsuite/gcc.dg/torture/pr57478.c
Normal file
21
gcc/testsuite/gcc.dg/torture/pr57478.c
Normal 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user