(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
aru-2.c
       1  /* { dg-do run } */
       2  /* { dg-require-profiling "-pg" } */
       3  /* { dg-options "-O2 -pg" } */
       4  
       5  static int __attribute__((noinline))
       6  bar (int x)
       7  {
       8    return x + 3;
       9  }
      10  
      11  int __attribute__((noinline))
      12  foo (int y0, int y1, int y2, int y3, int y4) {
      13    int r = 0;
      14    r += bar (r + y4);
      15    r += bar (r + y3);
      16    r += bar (r + y2);
      17    r += bar (r + y1);
      18    r += bar (r + y0);
      19    return r;
      20  }
      21  
      22  int
      23  main (void)
      24  {
      25    int z = foo (0, 1, 2, 3, 4);
      26    return !(z == 191);
      27  }
      28  
      29  /* { dg-final { cleanup-profile-file } } */