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
LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
strlenopt-23.c
blob
75dab2ae0bb91aa508dd051a21a33192331f1d94
1
/* PR tree-optimization/57230 */
2
/* { dg-do run } */
3
/* { dg-options "-O2" } */
4
5
#include
"strlenopt.h"
6
7
int
8
main
()
9
{
10
char
p
[] =
"hello world"
;
11
p
[
0
] = (
char
) (
strlen
(
p
) -
1
);
12
if
(
strlen
(
p
) !=
11
)
13
abort
();
14
return
0
;
15
}