summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr18291.c
blob: 7d983696f7d57e9c1526d2135816e89eb4df36e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
int baz(int k2)
{
  int i, j, *p, k = 1, k1 = 0;
  if (k2)
    p = &j;
  else
    p = &i;
  if (k1)
    *p = 0 , p = &k;
  *p = 1;
  return k;
}