(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr45105.c
       1  /* PR debug/45105 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Os -fcompare-debug" } */
       4  
       5  extern int *baz (int *, int *);
       6  
       7  void
       8  bar (int *p1, int *p2)
       9  {
      10    int n = *baz (0, 0);
      11    p1[n] = p2[n];
      12  }
      13  
      14  void
      15  foo (int *p, int l)
      16  {
      17    int a1[32];
      18    int a2[32];
      19    baz (a1, a2);
      20    while (l)
      21      {
      22        if (l & 1)
      23  	p = baz (a2, p);
      24        l--;
      25        bar (a1, a2);
      26      }
      27  }