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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20000603-1.c
blob
9c9f69baf04d1f47584344c31d78b4fb2e273400
1
struct
s1
{
double
d
; };
2
struct
s2
{
double
d
; };
3
4
double
f
(
struct
s1
*
a
,
struct
s2
*
b
)
5
{
6
a
->
d
=
1.0
;
7
return
b
->
d
+
1.0
;
8
}
9
10
int
main
()
11
{
12
struct
s1 a
;
13
a
.
d
=
0.0
;
14
if
(
f
(&
a
, (
struct
s2
*)&
a
) !=
2.0
)
15
abort
();
16
return
0
;
17
}