repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
960608-1.c
blob
1f47d02d9d58dac8d3a2f4c094509023c12e8cc7
1
typedef
struct
2
{
3
unsigned char
a
:
2
;
4
unsigned char
b
:
3
;
5
unsigned char
c
:
1
;
6
unsigned char
d
:
1
;
7
unsigned char
e
:
1
;
8
}
a_struct
;
9
10
foo
(
flags
)
11
a_struct
*
flags
;
12
{
13
return
(
flags
->
c
!=
0
14
||
flags
->
d
!=
1
15
||
flags
->
e
!=
1
16
||
flags
->
a
!=
2
17
||
flags
->
b
!=
3
);
18
}
19
20
main
()
21
{
22
a_struct flags
;
23
24
flags
.
c
=
0
;
25
flags
.
d
=
1
;
26
flags
.
e
=
1
;
27
flags
.
a
=
2
;
28
flags
.
b
=
3
;
29
30
if
(
foo
(&
flags
) !=
0
)
31
abort
();
32
else
33
exit
(
0
);
34
}