mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-13 03:29:50 +00:00
15 lines
236 B
C
15 lines
236 B
C
extern int foo(void);
|
|
typedef int (*func_p) (void);
|
|
extern func_p foo_ptr;
|
|
|
|
void
|
|
check_foo (void)
|
|
{
|
|
if (foo_ptr != foo)
|
|
__builtin_abort ();
|
|
if (foo_ptr() != 1)
|
|
__builtin_abort ();
|
|
if (foo() != 1)
|
|
__builtin_abort ();
|
|
}
|