(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr49000.c
       1  /* PR tree-optimization/49000 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -g" } */
       4  
       5  static int
       6  foo (int x, int y)
       7  {
       8    return x * y;
       9  }
      10  
      11  static int
      12  bar (int *z)
      13  {
      14    return *z;
      15  }
      16  
      17  void
      18  baz (void)
      19  {
      20    int a = 42;
      21    int *b = &a;
      22    foo (bar (&a), 3);
      23  }
      24  
      25  void
      26  test (void)
      27  {
      28    baz ();
      29  }