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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr17656.c
blob
0acb71f0c5e30330af7b5b098a54e220ee28a7af
1
int
sprintf
(
char
*
s
,
const char
*
format
, ...);
2
3
int
foo
(
int
i
,
int
j
)
4
{
5
char
*
buf
, *
str
;
6
7
if
(
i
)
8
str
=
""
;
9
else if
(
j
)
10
str
=
""
;
11
else
12
return
1
;
13
14
/* We were propagating &""[0] here and not calling fold_stmt with a
15
proper statement pointer. */
16
sprintf
(
buf
,
str
);
17
return
0
;
18
}