mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-15 04:20:28 +08:00
24 lines
222 B
C
24 lines
222 B
C
|
#include <stdlib.h>
|
||
|
void
|
||
|
foo (void)
|
||
|
{
|
||
|
exit (0);
|
||
|
}
|
||
|
|
||
|
void
|
||
|
__attribute__((destructor))
|
||
|
bar (void)
|
||
|
{
|
||
|
static int i;
|
||
|
foo ();
|
||
|
++i;
|
||
|
}
|
||
|
|
||
|
void
|
||
|
__attribute__((constructor))
|
||
|
destr (void)
|
||
|
{
|
||
|
extern void baz (void);
|
||
|
baz ();
|
||
|
}
|