mirror of
https://mirrors.tuna.tsinghua.edu.cn/git/glibc.git
synced 2026-01-12 00:20:19 +08:00
22 lines
199 B
C
22 lines
199 B
C
#include <stdlib.h>
|
|
void
|
|
foo (void)
|
|
{
|
|
exit (0);
|
|
}
|
|
|
|
void
|
|
__attribute__((destructor))
|
|
bar (void)
|
|
{
|
|
foo ();
|
|
}
|
|
|
|
void
|
|
__attribute__((constructor))
|
|
destr (void)
|
|
{
|
|
extern void baz (void);
|
|
baz ();
|
|
}
|