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
/
PR65282.c
blob
a52bec655eb24ba6d2814a9f0abf3663ab8affa7
1
/* { dg-do compile } */
2
/* { dg-options "-Os -fdump-ipa-icf" } */
3
4
int
a
[
2
];
5
static int
*
b
= &
a
[
0
], *
c
= &
a
[
1
];
6
7
int
8
main
()
9
{
10
*
c
=
1
;
11
*
b
=
0
;
12
13
if
(
a
[
1
] !=
1
)
14
__builtin_abort
();
15
16
return
0
;
17
}
18
19
/* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf" } } */