Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/20040310-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 | |
9 int 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 |