(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tree-ssa/
pr32964.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O1 -fdump-tree-optimized" } */
       3  
       4  union A
       5  {
       6   float a;
       7  };
       8  
       9  float t(float a)
      10  {
      11    union A a1, a2, a3;
      12    int i;
      13  
      14    a1.a = a;
      15    for(i = 0; i<100; i++)
      16      {
      17        a2 = a1;
      18        a2.a += a;
      19        a1 = a2;
      20    }
      21    a3 = a1;
      22    return a3.a;
      23  }
      24  
      25  /* { dg-final { scan-tree-dump-times "union" 0 "optimized"} } */