mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-16 18:10:11 +00:00
19 lines
212 B
C
19 lines
212 B
C
|
#include <stdio.h>
|
||
|
|
||
|
extern int foo (void);
|
||
|
extern int bar (void);
|
||
|
|
||
|
void
|
||
|
__attribute__ ((constructor))
|
||
|
init (void)
|
||
|
{
|
||
|
foo () - bar ();
|
||
|
}
|
||
|
|
||
|
static void
|
||
|
__attribute__ ((destructor))
|
||
|
fini (void)
|
||
|
{
|
||
|
putchar ('2');
|
||
|
}
|