ubuntu-buildroot/output/build/glibc-2.36-81-g4f4d7a13edfd.../elf/tst-initorder2.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