Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/modref-12.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 void foo ();
4 int
5 test()
6 {
7 struct {int a,b;} a = {0,0};
8 __attribute__ ((noinline))
9 void nested ()
10 {
11 a.b++;
12 }
13 nested ();
14 return a.a;
15 }
16 /* { dg-final { scan-tree-dump "return 0" "optimized"} } */