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
2002-05-10 David S. Miller <davem@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20001228-1.c
blob
9c93e79f571ff808b7a50c3d83730a5dd57a543b
1
int
foo1
(
void
)
2
{
3
union
{
4
char
a
[
sizeof
(
unsigned
)];
5
unsigned
b
;
6
}
u
;
7
8
u
.
b
=
0x01
;
9
return
u
.
a
[
0
];
10
}
11
12
int
foo2
(
void
)
13
{
14
volatile
union
{
15
char
a
[
sizeof
(
unsigned
)];
16
unsigned
b
;
17
}
u
;
18
19
u
.
b
=
0x01
;
20
return
u
.
a
[
0
];
21
}
22
23
int
main
(
void
)
24
{
25
if
(
foo1
() !=
foo2
())
26
abort
();
27
exit
(
0
);
28
}