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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
ipa
/
pr82808.c
blob
9c95d0b6ed75d07defccad8b47c1e188d6c77796
1
/* { dg-options "-O2" } */
2
/* { dg-do run } */
3
4
static void
__attribute__
((
noinline
))
5
foo
(
double
*
a
,
double
x
)
6
{
7
*
a
=
x
;
8
}
9
10
static double
__attribute__
((
noinline
))
11
f_c1
(
int
m
,
double
*
a
)
12
{
13
foo
(
a
,
m
);
14
return
*
a
;
15
}
16
17
int
18
main
(){
19
double
data
;
20
double
ret
=
0
;
21
22
if
((
ret
=
f_c1
(
2
, &
data
)) !=
2
)
23
{
24
__builtin_abort
();
25
}
26
return
0
;
27
}