1  /* { dg-require-effective-target indirect_calls } */
       2  
       3  int regex_subst(void)
       4  {
       5    const void *subst = "";
       6    return (*(int (*)(int))subst) (0);
       7  }
       8  
       9  int foobar (void)
      10  {
      11    int x;
      12    return (*(int (*)(void))&x) ();
      13  }