mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 23:32:06 +00:00
16 lines
276 B
C
16 lines
276 B
C
extern int bar(void);
|
|
typedef int (*func_p) (void);
|
|
extern func_p get_bar (void);
|
|
|
|
void
|
|
check_bar (void)
|
|
{
|
|
func_p bar_ptr = get_bar ();
|
|
if (bar_ptr != bar)
|
|
__builtin_abort ();
|
|
if (bar_ptr() != -1)
|
|
__builtin_abort ();
|
|
if (bar() != -1)
|
|
__builtin_abort ();
|
|
}
|