2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20020206-1.c
blobc21c564540977d1aa1a92c55df853c72e9f0c768
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. */
6 typedef struct {
7 unsigned char a;
8 } A;
10 unsigned int foo (A *x)
12 unsigned char b[2] = { 0, 0 };
13 unsigned char c = 0;
15 c = (x->a) ? b[1] : b[0];
17 return (unsigned int) c;