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
Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr50604.c
blob
1ab465a1095811286b7e343af1037054d233a6af
1
/* PR tree-optimization/50604 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
5
#include
"strlenopt.h"
6
7
typedef
char
T
;
8
extern
const
T s
[];
9
10
void
11
foo
(
T
*
x
)
12
{
13
char
*
r
=
malloc
(
strlen
(
x
));
14
strcpy
(
r
,
s
);
15
strcat
(
r
,
x
);
16
strcat
(
r
,
"/"
);
17
}
18
19
const
T s
[] =
"abcdefghijklmnopq"
;