aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/foo.c
blob: c84baee2e26a3bb1c332230eb6392165123b32c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>

void
foo (void)
{
  printf ("TEST2\n");
}

static void (*const init_array []) (void)
  __attribute__ ((used, section (".init_array"), aligned (sizeof (void *))))
  = { foo };