mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-21 04:31:04 +08:00
f60510ddaf
Checked on x86_64-linux-gnu and i686-linux-gnu.
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 ();
|
|
}
|