(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr104263.c
       1  /* PR tree-optimization/104263 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -fcompare-debug -fnon-call-exceptions -fno-inline-small-functions" } */
       4  
       5  int n;
       6  
       7  int
       8  bar (void)
       9  {
      10    int a;
      11  
      12    n = 0;
      13    a = 0;
      14  
      15    return n;
      16  }
      17  
      18  __attribute__ ((pure, returns_twice)) int
      19  foo (void)
      20  {
      21    n = bar () + 1;
      22    foo ();
      23  
      24    return 0;
      25  }