mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-11 10:33:33 +08:00
21 lines
246 B
C
21 lines
246 B
C
|
#include <stdio.h>
|
||
|
|
||
|
#ifndef NAME
|
||
|
int
|
||
|
main (void)
|
||
|
{
|
||
|
puts ("main");
|
||
|
}
|
||
|
#else
|
||
|
static void __attribute__ ((constructor))
|
||
|
init (void)
|
||
|
{
|
||
|
puts ("init: " NAME);
|
||
|
}
|
||
|
static void __attribute__ ((destructor))
|
||
|
fini (void)
|
||
|
{
|
||
|
puts ("fini: " NAME);
|
||
|
}
|
||
|
#endif
|