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