2000-03-31 19:09:42 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
|
2000-11-26 07:18:02 +01:00
|
|
|
void init (void) __attribute__ ((constructor));
|
2000-03-31 19:09:42 +02:00
|
|
|
void
|
|
|
|
__attribute__ ((constructor))
|
|
|
|
init (void)
|
|
|
|
{
|
|
|
|
write (1, "4", 1);
|
|
|
|
}
|
|
|
|
|
2000-11-26 07:18:02 +01:00
|
|
|
void fini (void) __attribute__ ((destructor));
|
2000-03-31 19:09:42 +02:00
|
|
|
void
|
|
|
|
__attribute__ ((destructor))
|
|
|
|
fini (void)
|
|
|
|
{
|
|
|
|
write (1, "5", 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
extern int dep1 (void);
|
|
|
|
|
|
|
|
int
|
|
|
|
main (void)
|
|
|
|
{
|
|
|
|
return dep1 () != 42;
|
|
|
|
}
|