Typo fix in most recent entry.
[binutils.git] / ld / testsuite / ld-elf / fini.c
blobcb6065538e62ce8f3fe1b9c4cb2cc1f04114d855
1 #include <stdio.h>
3 static void
4 fini_0 (void)
6 printf ("fini array 0\n");
9 static void
10 fini_1 (void)
12 printf ("fini array 1\n");
15 static void
16 fini_2 (void)
18 printf ("fini array 2\n");
21 void (*const fini_array []) (void)
22 __attribute__ ((section (".fini_array"),
23 aligned (sizeof (void *)))) =
25 &fini_0,
26 &fini_1,
27 &fini_2
30 int
31 main (void)
33 return 0;