1  /* Origin: PR optimization/5429 from Philipp Thomas <pthomas@suse.de>.  */
       2  /* This testcase caused ICE on IA-32 -O2 -march=i686 due to rtl sharing
       3     problem in noce_process_if_block.  Fixed by
       4     http://gcc.gnu.org/ml/gcc-patches/2002-01/msg02146.html.  */
       5  
       6  typedef struct {
       7    unsigned char a;
       8  } A;
       9  
      10  unsigned int foo (A *x)
      11  {
      12    unsigned char b[2] = { 0, 0 };
      13    unsigned char c = 0;
      14  
      15    c = (x->a) ? b[1] : b[0];
      16  
      17    return (unsigned int) c;
      18  }