about summary refs log blame commit diff
path: root/elf/reldep9mod1.c
blob: 249a2bae1c2ffc38c63acd54d6caf5afbcf6fd79 (plain) (tree)





















                            
#include <stdlib.h>
void
foo (void)
{
  exit (0);
}

void
__attribute__((destructor))
bar (void)
{
  static int i;
  foo ();
  ++i;
}

void
__attribute__((constructor))
destr (void)
{
  extern void baz (void);
  baz ();
}