PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / 20040310-1.c
blob104e98d08893e895fe890d3f4f5ffcd0a00a5457
1 /* This caused cc1 to segfault on s390x-ibm-linux
2 due to a bug in if_then_else_cond (combine.c). */
4 /* { dg-do compile } */
5 /* { dg-options "-O1" } */
7 extern void use (unsigned int x);
9 int main (void)
11 union
13 unsigned int x;
14 unsigned long pad;
15 } A;
17 struct
19 unsigned int x : 1;
20 } B;
22 A.x = 1;
23 B.x = 1;
24 A.x /= B.x;
25 use (A.x);
27 A.x = 1;
28 B.x = 1;
29 B.x /= A.x;
30 use (B.x);
32 return 0;