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
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
zero-struct-1.c
blob
d673adf5c31dcc82feaa44a6d37eacb146c9547f
1
struct
g
{};
2
char
y
[
3
];
3
char
*
f
= &
y
[
0
];
4
char
*
ff
= &
y
[
0
];
5
void
h
(
void
)
6
{
7
struct
g t
;
8
*((
struct
g
*)(
f
++)) = *((
struct
g
*)(
ff
++));
9
*((
struct
g
*)(
f
++)) = (
struct
g
){};
10
t
= *((
struct
g
*)(
ff
++));
11
}
12
13
void
abort
(
void
);
14
15
int
main
(
void
)
16
{
17
h
();
18
if
(
f
!= &
y
[
2
])
19
abort
();
20
if
(
ff
!= &
y
[
2
])
21
abort
();
22
return
0
;
23
}