8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/func-ptr-1.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

17 lines
179 B
C

static double f (float a);
static double (*fp) (float a);
main ()
{
fp = f;
if (fp ((float) 1) != 1.0)
abort ();
exit (0);
}
static double
f (float a)
{
return a;
}