mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 10:21:20 +00:00
21 lines
286 B
C
21 lines
286 B
C
|
|
|
|
static void bar ( void*(*service)(int,int) )
|
|
{
|
|
int i;
|
|
for (i = 0; i < 100000; i++) ;
|
|
service(1, 'h');
|
|
service(1, 'e');
|
|
service(1, 'l');
|
|
service(1, 'l');
|
|
service(1, 'o');
|
|
service(1, '\n');
|
|
}
|
|
|
|
void entry ( void*(*service)(int,int) )
|
|
{
|
|
bar(service);
|
|
service(0,0);
|
|
}
|
|
|