mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
21 lines
216 B
C
21 lines
216 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
void
|
||
|
test (void)
|
||
|
{
|
||
|
static int count;
|
||
|
if (count)
|
||
|
printf("PASS\n");
|
||
|
count++;
|
||
|
}
|
||
|
|
||
|
void
|
||
|
foo (void (*bar) (void))
|
||
|
{
|
||
|
if (bar != test)
|
||
|
abort ();
|
||
|
bar ();
|
||
|
test ();
|
||
|
}
|