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
C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
930718-1.c
blob
7dbb7a09e50f8ec3763b8d2a580d62d85bac3c86
1
/* { dg-additional-options "-std=gnu89" } */
2
3
typedef
struct
rtx_def
4
{
5
int
f1
:
1
;
6
int
f2
:
1
;
7
} *
rtx
;
8
9
static
rtx
10
f
(
orig
)
11
register
rtx orig
;
12
{
13
if
(
orig
->
f1
||
orig
->
f2
)
14
return
orig
;
15
orig
->
f2
=
1
;
16
return
orig
;
17
}
18
19
void
20
f2
()
21
{
22
abort
();
23
}
24
25
main
()
26
{
27
struct
rtx_def foo
;
28
rtx bar
;
29
30
foo
.
f1
=
1
;
31
foo
.
f2
=
0
;
32
bar
=
f
(&
foo
);
33
if
(
bar
!= &
foo
||
bar
->
f2
!=
0
)
34
abort
();
35
exit
(
0
);
36
}