repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* intrinsics/access.c: Include <stdlib.h>.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
20040310-1.c
blob
104e98d08893e895fe890d3f4f5ffcd0a00a5457
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