./:
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr17656.c
blob0acb71f0c5e30330af7b5b098a54e220ee28a7af
1 int sprintf (char *s, const char *format, ...);
3 int foo(int i, int j)
5 char *buf, *str;
7 if (i)
8 str = "";
9 else if (j)
10 str = "";
11 else
12 return 1;
14 /* We were propagating &""[0] here and not calling fold_stmt with a
15 proper statement pointer. */
16 sprintf(buf, str);
17 return 0;