OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR rtl-optimization/27616
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr17656.c
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
}