mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
24 lines
243 B
C
24 lines
243 B
C
|
#include <unistd.h>
|
||
|
|
||
|
extern int dep3 (void);
|
||
|
|
||
|
static void
|
||
|
__attribute__ ((constructor))
|
||
|
init (void)
|
||
|
{
|
||
|
write (1, "1", 1);
|
||
|
}
|
||
|
|
||
|
static void
|
||
|
__attribute__ ((destructor))
|
||
|
fini (void)
|
||
|
{
|
||
|
write (1, "8", 1);
|
||
|
}
|
||
|
|
||
|
int
|
||
|
dep4 (void)
|
||
|
{
|
||
|
return dep3 ();
|
||
|
}
|