binutils-gdb/ld/testsuite/ld-plugin/lto-7c.c

10 lines
117 B
C

extern int foo;
extern int foo2;
static void
__attribute__ ((unused, constructor))
set_foo (void)
{
foo = foo2;
}