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
/
990531-1.c
blob
d5501d3a7d746d59e8e4d3940013e5443bc9313c
1
unsigned long
bad
(
int
reg
,
unsigned long
inWord
)
2
{
3
union
{
4
unsigned long
word
;
5
unsigned char
byte
[
4
];
6
}
data
;
7
8
data
.
word
=
inWord
;
9
data
.
byte
[
reg
] =
0
;
10
11
return
data
.
word
;
12
}
13
14
main
()
15
{
16
/* XXX This test could be generalized. */
17
if
(
sizeof
(
long
) !=
4
)
18
exit
(
0
);
19
20
if
(
bad
(
0
,
0xdeadbeef
) ==
0xdeadbeef
)
21
abort
();
22
exit
(
0
);
23
}