]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-44.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dse-44.c
CommitLineData
1adf1182
RB
1/* { dg-do link } */
2/* { dg-options "-O -fdump-tree-dse1-details" } */
3
4extern void foo(void);
5int a, b;
6static int c;
7int main()
8{
9 if (c)
10 foo ();
11 int *g = &c;
12 int **h = &g;
13 int ***h1 = &h;
14 if (a)
15 while (b)
16 b = 0;
17}
18
19/* { dg-final { scan-tree-dump "Deleted dead store: g = &c;" "dse1" } } */