1.c
static int test(){
return 5;
}
int main(){
return test();
}
2.c
int test(){
return 6;
}
Above code is compiled fine with gcc 1.c 2.c and 5 is returned as expected. My question is, will the linker
choose test in 1.c at all times or its unspecified behaviour and test in 2.c could be chosen as well?