mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-04 16:50:57 +00:00
26 lines
222 B
C
26 lines
222 B
C
#include <stdio.h>
|
|
|
|
typedef void (*func_t) (void);
|
|
|
|
extern func_t get_foo (void);
|
|
|
|
void
|
|
foo (void)
|
|
{
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
func_t p;
|
|
|
|
foo ();
|
|
p = get_foo ();
|
|
p ();
|
|
|
|
if (foo == p)
|
|
printf ("PASS\n");
|
|
|
|
return 0;
|
|
}
|