aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/beginwarn.c
blob: ebe28191b56f3009225723eb6e712b8d939ac55b (plain)
1
2
3
4
5
6
7
8
9
static const char _evoke_link_warning_foo []
  __attribute__ ((used, section (".gnu.warning.foo")))
    = "function foo is deprecated";

extern void foo (void);

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