1 /* This caused cc1 to segfault on s390x-ibm-linux 2 due to a bug in if_then_else_cond (combine.c). */ 3 4 /* { dg-do compile } */ 5 /* { dg-options "-O1" } */ 6 7 extern void use (unsigned int x); 8 main(void)9int main (void) 10 { 11 union 12 { 13 unsigned int x; 14 unsigned long pad; 15 } A; 16 17 struct 18 { 19 unsigned int x : 1; 20 } B; 21 22 A.x = 1; 23 B.x = 1; 24 A.x /= B.x; 25 use (A.x); 26 27 A.x = 1; 28 B.x = 1; 29 B.x /= A.x; 30 use (B.x); 31 32 return 0; 33 } 34 35