]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/pr82059.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr82059.c
1 /* PR tree-optimization/82059 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-isolate-paths" } */
4 /* { dg-skip-if "accessing data memory with program memory address" { avr-*-* } } */
5
6 struct a
7 {
8 char b;
9 struct a *c;
10 } d (), f;
11 void *e;
12 long g;
13 void
14 h ()
15 {
16 struct a *i = 0;
17 if (g)
18 i = e;
19 if (!i)
20 d ();
21 i->c = &f;
22 i->b = *(char *) h;
23 }