ld: Update function prototypes for compilers defaulting to -std=gnu23
[binutils-gdb.git] / ld / testsuite / ld-x86-64 / pr23997b.c
blob02cb8f8f7f7e28e85cf3504a4c66c78a767f0a92
1 #include <stdio.h>
3 typedef void (*func_t) (void);
5 extern func_t get_foo (void);
7 void
8 foo (void)
12 int
13 main ()
15 func_t p;
17 foo ();
18 p = get_foo ();
19 p ();
21 if (foo == p)
22 printf ("PASS\n");
24 return 0;