summaryrefslogtreecommitdiff
path: root/elf/order2mod4.c
blob: 4f2026f0411a21e7c10e900223b98ba574efdd20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>

extern int bar (void);

int
foo (void)
{
  return 42 + bar ();
}

static void
__attribute__ ((destructor))
fini (void)
{
  putchar ('3');
}