(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr41241.c
       1  /* PR bootstrap/41241 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -fcompare-debug -g" } */
       4  /* { dg-options "-O2 -fcompare-debug -g -march=i586 -mtune=i586 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
       5  
       6  typedef struct { int t1; int t2; int t3; } *T;
       7  typedef struct { int s; } S;
       8  
       9  int fn1 (int);
      10  int fn2 (int, int, int);
      11  int fn3 (void);
      12  
      13  static S
      14  bar ()
      15  {
      16    S s = { 0 };
      17    return s;
      18  }
      19  
      20  void
      21  foo (T x)
      22  {
      23    int a, b, c, d, e;
      24    T f, g;
      25    S h;
      26    a = x->t2;
      27    fn1 (x->t1);
      28    h = bar (b);
      29    c = fn1 (e);
      30    d = fn3 ();
      31    f->t3 &= g->t3 |= fn2 (0, b, x->t1);
      32    fn2 (0, c, d);
      33    fn2 (0, e, 0);
      34  }