summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr65517.c
blob: a63a03a870aecc7c443a18a836ff4e092964d257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */

typedef void (*argmatch_exit_fn)();
int a;
void __argmatch_die () { __builtin_exit (0); }

int
main ()
{
  while (1)
    {
      argmatch_exit_fn b = __argmatch_die;
      if (a)
	b ();
    }
  return 0;
}