glibc/elf/order2mod2.c
Jakub Jelinek 0ecb606cb6 2.5-18.1
2007-07-12 18:26:36 +00:00

19 lines
221 B
C

#include <stdio.h>
extern int foo (void);
extern int bar (void);
void
__attribute__ ((constructor))
init (void)
{
(void) (foo () - bar ());
}
static void
__attribute__ ((destructor))
fini (void)
{
putchar ('2');
}