(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr46499-1.c
       1  /* PR middle-end/46499 */
       2  /* { dg-do run } */
       3  /* { dg-options "-O -fno-omit-frame-pointer -fno-tree-ccp -fno-tree-dominator-opts -finline-small-functions" } */
       4  
       5  extern void abort (void);
       6  
       7  int count = 0;
       8  
       9  int
      10  foo (void)
      11  {
      12    count++;
      13    return 0;
      14  }
      15  
      16  int
      17  bar (void)
      18  {
      19    count++;
      20    return 0;
      21  }
      22  
      23  int
      24  main ()
      25  {
      26    if ((foo () == 1) & (bar () == 1))
      27      abort ();
      28    if (count != 2)
      29      abort ();
      30    return 0;
      31  }