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
/
pr92529.c
blob
0864f3427739cd12dfa1aa6f72d5c9cecd07e939
1
/* PR ipa/92529 */
2
/* { dg-options "-O2 -fdump-ipa-icf-optimized" } */
3
4
int
5
foo
(
volatile
int
a
)
6
{
7
return
(
char
)
a
;
8
}
9
10
int
11
bar
(
volatile
int
a
)
12
{
13
return
(
short
)
a
;
14
}
15
16
#pragma GCC optimize (
"-O0"
)
17
18
int
main
(
int
argc
,
char
**
argv
)
19
{
20
int
r
=
bar
(
1000
);
21
__builtin_printf
(
"global: %d
\n
"
,
r
);
22
if
(
r
!=
1000
)
23
__builtin_abort
();
24
25
return
0
;
26
}
27
28
/* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */