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
2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
strlenopt-24.c
blob
962e04fded30b8b1f7dce42b2dcca511c1d03abd
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 "strlen" } } *
17
/* { dg-final { cleanup-tree-dump "strlen" } } */