(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr64465.c
       1  /* PR tree-optimization/64465 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -fexceptions" } */
       4  /* { dg-require-effective-target exceptions } */
       5  
       6  extern int foo (int *);
       7  extern int bar (int, int);
       8  static inline __attribute__ ((__always_inline__))
       9  int baz (int o)
      10  {
      11    if (__builtin_constant_p (o))
      12      return bar (o, 1);
      13    return bar (o, 0);
      14  }
      15  
      16  void
      17  test (void)
      18  {
      19    int s;
      20    foo (&s);
      21    baz (4);
      22    baz (s);
      23  }