2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20020323-1.c
blobed3c66651d9ffa3a162c14947f07d9dcdf39e6ef
1 /* This testcase caused ICE on powerpc at -O3, because regrename did
2 not handle match_dup of match_operator if the RTLs were not shared. */
4 struct A
6 unsigned char *a0, *a1;
7 int a2;
8 };
10 void bar (struct A *);
12 unsigned int
13 foo (int x)
15 struct A a;
16 unsigned int b;
18 if (x < -128 || x > 255 || x == -1)
19 return 26;
21 a.a0 = (unsigned char *) &b;
22 a.a1 = a.a0 + sizeof (unsigned int);
23 a.a2 = 0;
24 bar (&a);
25 return b;