about summary refs log blame commit diff
path: root/elf/dep1.c
blob: 49dc2a22d9544afdec2653ccde8956c8c6d684df (plain) (tree)






















                             
#include <unistd.h>

extern int dep2 (void);
extern int dep4 (void);

static void
__attribute__ ((constructor))
init (void)
{
  write (1, "3", 1);
}

static void
__attribute__ ((destructor))
fini (void)
{
  write (1, "6", 1);
}

int
dep1 (void)
{
  return dep4 () - dep2 ();
}