blob: 32bfc81741aa244d85f0cb52484f35eda0516e98 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-sink" } */
int foo(int *a, int r, int *b)
{
int ret = 0;
*a = 1;
if (r == 3)
{
*a = 5;
*b = 3;
}
return ret;
}
/* *a = 1 should be sunk to the else block. */
/* { dg-final { scan-tree-dump-times "Sinking" 1 "sink1" } } */