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
PR inline-asm/84742
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr68390.c
blob
86f07fefd4fae7e3561e93644b0d58f167454971
1
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
4
__attribute__
((
noinline
))
5
double
direct
(
int
x
, ...)
6
{
7
return
x
*
x
;
8
}
9
10
__attribute__
((
noinline
))
11
double
broken
(
double
(*
indirect
)(
int
x
, ...),
int
v
)
12
{
13
return
indirect
(
v
);
14
}
15
16
int
main
()
17
{
18
double
d1
,
d2
;
19
int
i
=
2
;
20
d1
=
broken
(
direct
,
i
);
21
if
(
d1
!=
i
*
i
)
22
{
23
__builtin_abort
();
24
}
25
return
0
;
26
}
27