(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr40792.c
       1  /* PR tree-optimization/40792 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O3" } */
       4  
       5  void foo (int, char *, int *);
       6  
       7  void
       8  bar (int *a, int *b, ...)
       9  {
      10    int c;
      11    char d[256];
      12    foo (*b, d, &c);
      13  }
      14  
      15  static int a, b;
      16  
      17  void
      18  baz (int c)
      19  {
      20    bar (&a, &b);
      21  }