aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr103594.c
blob: 0eae239eea0a351bfef8d0e7d7684fe4e887beaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile { target fpic } } */
/* { dg-options "-O1 -fpic" } */

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

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