summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20070212-2.c
blob: a107d0efb93c822e26adcd66973185f5344a6ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
int f(int k, int i1, int j1)
{
  int *f1;
  if(k)
   f1 = &i1;
  else
   f1 = &j1;
  i1 = 0;
  return *f1;
}

extern void abort (void);

int main()
{
  if (f(1, 1, 2) != 0)
    abort ();
  return 0;
}