blob: f8ce0470c4a88d40e5c5b5414f202c14835b4706 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
void foo ();
int
test()
{
struct {int a,b;} a = {0,0};
__attribute__ ((noinline))
void nested ()
{
a.b++;
}
nested ();
return a.a;
}
/* { dg-final { scan-tree-dump "return 0" "optimized"} } */