aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr37433-1.c
blob: 48a57b637d7ef378278659fc0c0321abcc8659cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-require-effective-target indirect_calls } */

void regex_subst(void)
{
  const void *subst = "";
  (*(void (*)(int))subst) (0);
}

void foobar (void)
{
  int x;
  (*(void (*)(void))&x) ();
}