Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr39226.c
blob3d336360ae5eb28c1a8a0edd13f5335c0ade974b
1 /* PR target/39226 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 /* { dg-options "-O2 -mtune=cell -mminimal-toc" { target { powerpc*-*-* && lp64 } } } */
6 #if (__SIZEOF_INT__ == 2)
7 struct A
9 char *a;
10 unsigned int b : 1;
11 unsigned int c : 15;
13 #else
14 struct A
16 char *a;
17 unsigned int b : 1;
18 unsigned int c : 31;
20 #endif
22 struct B
24 struct A *d;
27 void
28 foo (struct B *x, unsigned long y)
30 if (x->d[y].c)
31 return;
32 if (x->d[y].b)
33 x->d[y].a = 0;