Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/pr82059.c

raw
1 /* PR tree-optimization/82059 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-isolate-paths" } */
4
5 struct a
6 {
7 char b;
8 struct a *c;
9 } d (), f;
10 void *e;
11 long g;
12 void
13 h ()
14 {
15 struct a *i = 0;
16 if (g)
17 i = e;
18 if (!i)
19 d ();
20 i->c = &f;
21 i->b = *(char *) h; /* { dg-warning "accessing data memory with program memory address.*" "" { target avr-*-* } } */
22 }