binutils-gdb/ld/testsuite/ld-gc/gc.c
2008-01-23 16:05:45 +00:00

22 lines
213 B
C

int unused_var = 7;
int used_var = 7;
int
unused_func (int v)
{
return 3 * unused_var;
}
int
__attribute__((noinline))
used_func (int v)
{
return 2 * used_var;
}
int
main (void)
{
return used_func (5);
}