summaryrefslogtreecommitdiff
path: root/weak/a.c
blob: 49f7d579ee727dd4cd47ecad99c7ab61b72d4eff (plain)
1
2
3
4
5
6
7
8
9
10
11
int __sym(int x)
{
	return x+1;
}

extern int sym(int x) __attribute__((weak,alias("__sym")));

int same(int x)
{
	return sym(x)*3;
}