Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/func-ptr-1.c

raw
1 void abort (void);
2 void exit (int);
3
4 static double f (float a);
5 static double (*fp) (float a);
6
7 int
8 main (void)
9 {
10 fp = f;
11 if (fp ((float) 1) != 1.0)
12 abort ();
13 exit (0);
14 }
15
16 static double
17 f (float a)
18 {
19 return a;
20 }