summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr47426-2.c
blob: a22e902bce450d1b876771b797c549bc36ebe298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
typedef void tfoo (int *);
tfoo *getfoo (void);

void
bar (int *i)
{
  (*i)--;
}

int
main ()
{
  int i = 1;
  getfoo ()(&i);
  if (i)
    __builtin_abort ();
  return 0;
}