binutils-gdb/ld/testsuite/ld-elf/data2.c

10 lines
107 B
C

int foo = 0;
extern int foo_alias __attribute__ ((weak, alias ("foo")));
void
bar (void)
{
foo = -1;
}