1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -w -fdump-tree-dom2" } */
       3  
       4  extern void frob (void);
       5  extern void frob (void);
       6  
       7  void
       8  rhs_to_tree (int x, int z)
       9  {
      10    if (x >= 4)
      11      frob ();
      12    if (x >= 3)
      13      frob ();
      14  }
      15  
      16  /* The second conditional should change into a simple equality test.  */
      17  /* { dg-final { scan-tree-dump-times "if \\(x_\[0-9\]+\\(D\\) == 3\\)" 1 "dom2"} } */
      18