mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
19 lines
221 B
C
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');
|
|
}
|