1  /* { dg-do compile } */
       2  /* { dg-additional-options "-fno-tree-dce" } */
       3  
       4  int n;
       5  
       6  __attribute__ ((pure,returns_twice)) int
       7  bar (void);
       8  
       9  int
      10  foo (int x)
      11  {
      12    n = 0;
      13  
      14    bar ();
      15  
      16    if (x && n)
      17      return 0;
      18  
      19    foo (x);
      20  }