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
middle-end: also optimized `popcount(a) <= 1` [PR90693]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
strlenopt-24.c
blob
275b5602b70f93a96df6f158fb9e4c473ad1af45
1
/* PR tree-optimization/57230 */
2
/* { dg-do run } */
3
/* { dg-options "-O2 -fdump-tree-strlen" } */
4
5
#include
"strlenopt.h"
6
7
int
8
main
()
9
{
10
char
p
[] =
"hello world"
;
11
if
(
strlen
(
p
) !=
11
)
12
abort
();
13
return
0
;
14
}
15
16
/* { dg-final { scan-tree-dump-times "strlen \\(" 0 "strlen1" } } */