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 middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
ipa
/
ipa-icf-33.c
blob
61d4e2647beed94f0b58d38deca0c16dfdbc9b56
1
/* { dg-do compile } */
2
/* { dg-options "-O0 -fipa-icf -fdump-ipa-icf" } */
3
4
#include <stdio.h>
5
6
static int
7
__attribute__
((
no_icf
))
8
foo
()
9
{
10
return
2
;
11
}
12
13
static int
14
__attribute__
((
no_icf
))
15
bar
()
16
{
17
return
2
;
18
}
19
20
int
main
()
21
{
22
return
foo
() -
bar
();
23
}
24
25
/* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */